invitees can now accept an invitation
This commit is contained in:
parent
4272c8f8a8
commit
da9db62b9a
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue