File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func ApplicationsPost(ctx *context.Context) {
5454 ctx .ServerError ("GetScope" , err )
5555 return
5656 }
57- if scope == "" {
57+ if scope == "" || scope == auth_model . AccessTokenScopePublicOnly {
5858 ctx .Flash .Error (ctx .Tr ("settings.at_least_one_permission" ), true )
5959 }
6060
Original file line number Diff line number Diff line change 6161 <div class="field">
6262 <div class="tw-my-2">{{ctx.Locale.Tr "settings.repo_and_org_access"}}</div>
6363 <label class="gt-checkbox">
64- <input type="radio" name="scope" value="{{$.AccessTokenScopePublicOnly}}"> {{ctx.Locale.Tr "settings.permissions_public_only"}}
64+ <input type="radio" name="scope-public-only " value="{{$.AccessTokenScopePublicOnly}}"> {{ctx.Locale.Tr "settings.permissions_public_only"}}
6565 </label>
6666 <label class="gt-checkbox">
67- <input type="radio" name="scope" value="" checked> {{ctx.Locale.Tr "settings.permissions_access_all"}}
67+ <input type="radio" name="scope-public-only " value="" checked> {{ctx.Locale.Tr "settings.permissions_access_all"}}
6868 </label>
6969 </div>
7070 <div>
You can’t perform that action at this time.
0 commit comments