fix(repo): require organization owners for team access (#39046)

Require organization ownership before changing repository team
associations when team access is restricted.

---------

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
bircni
2026-08-23 06:35:55 +00:00
committed by GitHub
co-authored by silverwind
parent bedd2afb47
commit 204c0bafd3
10 changed files with 106 additions and 45 deletions
+1 -1
View File
@@ -51,7 +51,7 @@
<h4 class="ui top attached header">
{{ctx.Locale.Tr "repo.settings.teams"}}
</h4>
{{$allowedToChangeTeams := (or (.Org.RepoAdminChangeTeamAccess) (.Permission.IsOwner))}}
{{$allowedToChangeTeams := .CanChangeRepoTeamAccess}}
{{if .Teams}}
<div class="ui attached segment">
<div class="flex-divided-list items-with-main">