From da9db62b9ad2f841c52d5aa1ec9d3961f1643bf8 Mon Sep 17 00:00:00 2001 From: James Tauber Date: Fri, 3 Aug 2012 00:33:28 -0400 Subject: [PATCH] invitees can now accept an invitation --- symposion/teams/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/symposion/teams/views.py b/symposion/teams/views.py index cdeba3f7..73f6b438 100644 --- a/symposion/teams/views.py +++ b/symposion/teams/views.py @@ -13,10 +13,9 @@ from symposion.teams.models import Team, Membership def can_join(team, user): state = team.get_state_for_user(user) - if team.access == "open" and state is None: return True - elif team.access == "invitation" and state is "invited": + elif state == "invited": return True elif user.is_staff and state is None: return True