mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-01 20:25:22 +02:00
minor nitpick
This commit is contained in:
@@ -282,6 +282,9 @@ func GetActionsUserRepoPermission(ctx context.Context, repo *repo_model.Reposito
|
||||
}
|
||||
|
||||
// Check Organization Cross-Repo Access Policy
|
||||
if err := repo.LoadOwner(ctx); err != nil {
|
||||
return perm, err
|
||||
}
|
||||
if repo.OwnerID == taskRepo.OwnerID && repo.Owner.IsOrganization() {
|
||||
orgCfg, err := actions_model.GetOrgActionsConfig(ctx, repo.OwnerID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user