0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-10 04:56:59 +01:00
This commit is contained in:
Excellencedev 2026-01-16 18:13:18 +01:00
parent 5067f1dbfa
commit 27a405571b

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
}
}