Commit 8f446cb 1 parent 35aa33d commit 8f446cb Copy full SHA for 8f446cb
File tree 2 files changed +3
-3
lines changed
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) {
54
54
ctx .ServerError ("GetScope" , err )
55
55
return
56
56
}
57
- if scope == "" {
57
+ if scope == "" || scope == auth_model . AccessTokenScopePublicOnly {
58
58
ctx .Flash .Error (ctx .Tr ("settings.at_least_one_permission" ), true )
59
59
}
60
60
Original file line number Diff line number Diff line change 61
61
<div class="field">
62
62
<div class="tw-my-2">{{ctx.Locale.Tr "settings.repo_and_org_access"}}</div>
63
63
<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"}}
65
65
</label>
66
66
<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"}}
68
68
</label>
69
69
</div>
70
70
<div>
You can’t perform that action at this time.
0 commit comments