Skip to content

Commit b811ab4

Browse files
yp05327lunny
andauthored
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 <[email protected]>
1 parent ef11d41 commit b811ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: templates/org/team/sidebar.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</thead>
5959
<tbody>
6060
{{range $t, $unit := $.Units}}
61-
{{if and (lt $unit.MaxPerm 2) (not $unit.Type.UnitGlobalDisabled)}}
61+
{{if (not $unit.Type.UnitGlobalDisabled)}}
6262
<tr>
6363
<td><strong>{{$.locale.Tr $unit.NameKey}}</strong></td>
6464
<td>{{if eq ($.Team.UnitAccessMode $.Context $unit.Type) 0 -}}

0 commit comments

Comments
 (0)