mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 10:13:10 +00:00
Use "read" value for General Access (#18496)
- Currently the `.Team.AccessMode` is being used when editing a team, if you want to admin -> General Access, the value of General Access is "admin" which is incorrect. - Resolves #18483 (First bug mentioned) Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
80048c091a
commit
7f2530e004
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@
|
|||
<br>
|
||||
<div class="field">
|
||||
<div class="ui radio checkbox">
|
||||
<input type="radio" name="permission" value="{{if .PageIsOrgTeamsNew}}read{{else}}{{.Team.AccessMode}}{{end}}" {{if or .PageIsOrgTeamsNew (eq .Team.AccessMode 1) (eq .Team.AccessMode 2)}}checked{{end}}>
|
||||
<input type="radio" name="permission" value="read" {{if or .PageIsOrgTeamsNew (eq .Team.AccessMode 1) (eq .Team.AccessMode 2)}}checked{{end}}>
|
||||
<label>{{.i18n.Tr "org.teams.general_access"}}</label>
|
||||
<span class="help">{{.i18n.Tr "org.teams.general_access_helper"}}</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue