Commit 5895050c authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Do not allow user whose project acceptation is

pending to leave the project.
parent c7c541c9
......@@ -670,6 +670,9 @@ class AstakosUser(User):
def is_project_member(self, project):
return project.user_status(self) in [0,1,2,3]
def is_project_accepted_member(self, project):
return project.user_status(self) == 2
class AstakosUserAuthProviderManager(models.Manager):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment