mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-24 19:36:43 +01:00
...
This commit is contained in:
parent
1840f0a7a1
commit
73649530af
@ -143,7 +143,7 @@ func reqPackageAccess(accessMode perm.AccessMode) func(ctx *context.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
grantedMode := perm.AccessModeNone
|
||||
var grantedMode perm.AccessMode
|
||||
if task.RepoID == packageRepoID {
|
||||
// Same-repository access: use the token's configured package permission
|
||||
if err := task.LoadJob(ctx); err == nil && task.Job != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user