mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	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:  After:  Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -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 -}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user