staff can now see all teams on dashboard

This commit is contained in:
James Tauber 2012-08-02 10:17:01 -04:00
parent 58121ebfe6
commit eb2382d3ac

View file

@ -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""