This commit is contained in:
Excellencedev
2026-01-16 18:13:18 +01:00
parent 5067f1dbfa
commit 27a405571b
+1 -1
View File
@@ -320,7 +320,7 @@ func GetActionsUserRepoPermission(ctx context.Context, repo *repo_model.Reposito
// If allowed, we grant Read Access (consistent with old behavior and package access).
// If NOT allowed (checked above for sameOrg), we fall through to here.
if !isSameOrg {
if !isSameOrg && repo.IsPrivate {
return perm, nil
}
}