invitees can now accept an invitation

This commit is contained in:
James Tauber 2012-08-03 00:33:28 -04:00
parent 4272c8f8a8
commit da9db62b9a

View file

@ -13,10 +13,9 @@ from symposion.teams.models import Team, Membership
def can_join(team, user): def can_join(team, user):
state = team.get_state_for_user(user) state = team.get_state_for_user(user)
if team.access == "open" and state is None: if team.access == "open" and state is None:
return True return True
elif team.access == "invitation" and state is "invited": elif state == "invited":
return True return True
elif user.is_staff and state is None: elif user.is_staff and state is None:
return True return True