Allow members to leave organisations
This commit is contained in:
@@ -64,6 +64,12 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
{% block organisation_profile %}{% endblock %}
|
||||
{% if checkAccess('leave_organisation') %}
|
||||
<hr>
|
||||
<div class="text-center">
|
||||
<button type="button" class="btn btn-danger js-organisation-leave">{{translate('ORGANISATION.LEAVE')}}</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -95,7 +101,8 @@
|
||||
true, // deep extend
|
||||
{
|
||||
organisation_slug: "{{organisation.slug}}",
|
||||
delete_redirect: "{{delete_redirect}}"
|
||||
delete_redirect: "{{delete_redirect}}",
|
||||
leave_redirect: "{{leave_redirect}}"
|
||||
},
|
||||
page
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user