1
0
Fork 0
forked from forgejo/forgejo

Fix access check for org-level project (#26182) (#26223)

Backport #26182 by @Zettat123

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.

Co-authored-by: Zettat123 <zettat123@gmail.com>
(cherry picked from commit 3a29712e0a)
This commit is contained in:
Giteabot 2023-07-30 02:50:58 +08:00 committed by Earl Warren
parent 7ee4804b9c
commit 5afb0294f4
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 74 additions and 6 deletions

View file

@ -280,3 +280,9 @@
team_id: 20
type: 9 # package
access_mode: 2
-
id: 48
team_id: 2
type: 8
access_mode: 2