Skip to content

Commit 9c2a584

Browse files
davidsvantessonlafriks
authored andcommitted
Fix repo_admin_change_team_access always checked in org settings (#8319)
Signed-off-by: David Svantesson <[email protected]>
1 parent cf170bf commit 9c2a584

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

routers/org/setting.go

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func Settings(ctx *context.Context) {
3131
ctx.Data["Title"] = ctx.Tr("org.settings")
3232
ctx.Data["PageIsSettingsOptions"] = true
3333
ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility
34+
ctx.Data["RepoAdminChangeTeamAccess"] = ctx.Org.Organization.RepoAdminChangeTeamAccess
3435
ctx.HTML(200, tplSettingsOptions)
3536
}
3637

templates/org/settings/options.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<label>{{.i18n.Tr "org.settings.permission"}}</label>
6161
<div class="field">
6262
<div class="ui checkbox">
63-
<input class="hidden" type="checkbox" name="repo_admin_change_team_access" checked/>
63+
<input class="hidden" type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}/>
6464
<label>{{.i18n.Tr "org.settings.repoadminchangeteam"}}</label>
6565
</div>
6666
</div>

0 commit comments

Comments
 (0)