aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-02-01 09:41:43 +0100
committerGitHub <noreply@github.com>2022-02-01 16:41:43 +0800
commit7f2530e004c9908f9ee18b4060c8d4837a72f93b (patch)
treef3c7ca86d8b2e644dbfaeec89ad414bb4fcfc0e8 /templates
parent80048c091a13d2bae9b72497d306e1acf4046be4 (diff)
downloadgitea-7f2530e004c9908f9ee18b4060c8d4837a72f93b.tar.gz
gitea-7f2530e004c9908f9ee18b4060c8d4837a72f93b.zip
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>
Diffstat (limited to 'templates')
-rw-r--r--templates/org/team/new.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index 9877e9a941..2531868ec8 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -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>