Changeset - 7de1763de0d0
[Not reviewed]
0 1 0
James Tauber - 12 years ago 2012-08-02 14:27:34
jtauber@jtauber.com
team permission checks now let staff in
1 file changed with 8 insertions and 4 deletions:
0 comments (0 inline, 0 general)
symposion/teams/views.py
Show inline comments
...
 
@@ -19,2 +19,4 @@ def can_join(team, user):
 
        return True
 
    elif user.is_staff and state is None:
 
        return True
 
    else:
...
 
@@ -35,2 +37,4 @@ def can_apply(team, user):
 
        return True
 
    elif user.is_staff and state is None:
 
        return True
 
    else:
...
 
@@ -46,3 +50,3 @@ def team_detail(request, slug):
 
    state = team.get_state_for_user(request.user)
 
    if team.access == "invitation" and state is None:
 
    if team.access == "invitation" and state is None and request.user.is_staff:
 
        raise Http404()
...
 
@@ -62,3 +66,3 @@ def team_join(request, slug):
 
    state = team.get_state_for_user(request.user)
 
    if team.access == "invitation" and state is None:
 
    if team.access == "invitation" and state is None and request.user.is_staff:
 
        raise Http404()
...
 
@@ -79,3 +83,3 @@ def team_leave(request, slug):
 
    state = team.get_state_for_user(request.user)
 
    if team.access == "invitation" and state is None:
 
    if team.access == "invitation" and state is None and request.user.is_staff:
 
        raise Http404()
...
 
@@ -95,3 +99,3 @@ def team_apply(request, slug):
 
    state = team.get_state_for_user(request.user)
 
    if team.access == "invitation" and state is None:
 
    if team.access == "invitation" and state is None and request.user.is_staff:
 
        raise Http404()
0 comments (0 inline, 0 general)