aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-02-20 16:08:33 +0900
committerGitHub <noreply@github.com>2023-02-20 15:08:33 +0800
commitb811ab48e513a5b98edb935e0c63e76233ee1783 (patch)
treee2f8676fda6ba67f6598171a376a73c52cf35a2c /templates/org
parentef11d41639dd1e89676e395068ee453312560adb (diff)
downloadgitea-b811ab48e513a5b98edb935e0c63e76233ee1783.tar.gz
gitea-b811ab48e513a5b98edb935e0c63e76233ee1783.zip
Add all units to the units permission list in org team members sidebar (#22971)
Add all units to the units permission list in org team members sidebar. Before: ![BQF448EIHEYKY62XGG(5101](https://user-images.githubusercontent.com/18380374/219877772-b57df8fb-2b82-4b1a-85c8-3809f8751cab.png) After: ![image](https://user-images.githubusercontent.com/18380374/219877762-f69482b8-abf9-4333-978e-6a3f52039a16.png) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/team/sidebar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl
index ab118a7e26..507173e51f 100644
--- a/templates/org/team/sidebar.tmpl
+++ b/templates/org/team/sidebar.tmpl
@@ -58,7 +58,7 @@
</thead>
<tbody>
{{range $t, $unit := $.Units}}
- {{if and (lt $unit.MaxPerm 2) (not $unit.Type.UnitGlobalDisabled)}}
+ {{if (not $unit.Type.UnitGlobalDisabled)}}
<tr>
<td><strong>{{$.locale.Tr $unit.NameKey}}</strong></td>
<td>{{if eq ($.Team.UnitAccessMode $.Context $unit.Type) 0 -}}