]> source.dussan.org Git - gitea.git/commit
Fix access check for org-level project (#26182)
authorZettat123 <zettat123@gmail.com>
Sat, 29 Jul 2023 14:13:24 +0000 (22:13 +0800)
committerGitHub <noreply@github.com>
Sat, 29 Jul 2023 14:13:24 +0000 (14:13 +0000)
commitb33cf4fabcdedff126b173d81c8a5609202b39ff
tree9bcca2ff15435b15232d197cea045a78ace040c6
parent05d0b7ca91893b749f3e70e828f9777690ecf5f1
Fix access check for org-level project (#26182)

Fix #25934

Add `ignoreGlobal` parameter to `reqUnitAccess` and only check global
disabled units when `ignoreGlobal` is true. So the org-level projects
and user-level projects won't be affected by global disabled
`repo.projects` unit.
models/fixtures/team_unit.yml
routers/web/web.go
tests/integration/org_project_test.go [new file with mode: 0644]