staff can now see all teams on dashboard
This commit is contained in:
		
							parent
							
								
									58121ebfe6
								
							
						
					
					
						commit
						eb2382d3ac
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -27,6 +27,8 @@ class AvailableTeamsNode(template.Node):
 | 
			
		|||
                teams.append(team)
 | 
			
		||||
            elif team.access == "open" and state is None:
 | 
			
		||||
                teams.append(team)
 | 
			
		||||
            elif request.user.is_staff and state is None:
 | 
			
		||||
                teams.append(team)
 | 
			
		||||
        context[self.context_var] = teams
 | 
			
		||||
        return u""
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue