Commit 03d5b85d authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix leave project in case of auto_accept policy

parent 56747fce
......@@ -560,7 +560,7 @@ def leave_project(project_application_id, user_id):
project = get_project_by_application_id(project_application_id)
leave_policy = project.application.member_join_policy
leave_policy = project.application.member_leave_policy
if leave_policy == get_closed_leave():
raise PermissionDenied(_(astakos_messages.MEMBER_LEAVE_POLICY_CLOSED))
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