From 27a405571b7dee8f174d172f2723d1240ea93895 Mon Sep 17 00:00:00 2001 From: Excellencedev Date: Fri, 16 Jan 2026 18:13:18 +0100 Subject: [PATCH] fix --- models/perm/access/repo_permission.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/perm/access/repo_permission.go b/models/perm/access/repo_permission.go index 8cac1c49a0..da41878dc8 100644 --- a/models/perm/access/repo_permission.go +++ b/models/perm/access/repo_permission.go @@ -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 } }