mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-20 08:34:12 +02:00
...
This commit is contained in:
1 parent
1840f0a7a1
commit
73649530af
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user