forgejo/models/project
Earl Warren 913e3b536e
fix(sec): permission check for project issue
- Do an access check when loading issues for a project board, currently
this is not done and exposes the title, labels and existence of a
private issue that the viewer of the project board may not have access
to.
- The number of issues cannot be calculated in a efficient manner
and stored in the database because their number may vary depending on
the visibility of the repositories participating in the project. The
previous implementation used the pre-calculated numbers stored in each
project, which did not reflect that potential variation.
- The code is derived from https://github.com/go-gitea/gitea/pull/22865

(cherry picked from commit 2193afaeb9954a5778f5a47aafd0e6fbbf48d000)
2025-02-05 22:05:22 +00:00
..
board.go fix(sec): permission check for project issue 2025-02-05 22:05:22 +00:00
board_test.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
issue.go fix(sec): permission check for project issue 2025-02-05 22:05:22 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
project.go Fix various problems around projects board view (#30696) 2024-05-14 15:51:15 +02:00
project_test.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00