Use specific permission for showing deleted organisations button
This commit is contained in:
@@ -31,9 +31,6 @@
|
|||||||
<button type="button" class="btn btn-success js-organisation-create">
|
<button type="button" class="btn btn-success js-organisation-create">
|
||||||
<i class="fas fa-plus-square"></i> {{translate("ORGANISATION.CREATE")}}
|
<i class="fas fa-plus-square"></i> {{translate("ORGANISATION.CREATE")}}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-danger js-organisation-viewDeleted">
|
|
||||||
<i class="fas fa-minus-square"></i> {{translate("VIEW_DELETED")}}
|
|
||||||
</button>
|
|
||||||
{% elseif checkAccess('register_organisation') %}
|
{% elseif checkAccess('register_organisation') %}
|
||||||
{% if (organisationConfig.membership.single_membership == 0) or ((current_user.organisations.count == 0) and (current_user.pendingOrganisations.count == 0)) %}
|
{% if (organisationConfig.membership.single_membership == 0) or ((current_user.organisations.count == 0) and (current_user.pendingOrganisations.count == 0)) %}
|
||||||
<button type="button" class="btn btn-success js-organisation-register">
|
<button type="button" class="btn btn-success js-organisation-register">
|
||||||
@@ -41,6 +38,11 @@
|
|||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if checkAccess('uri_deleted_organisations') %}
|
||||||
|
<button type="button" class="btn btn-danger js-organisation-viewDeleted">
|
||||||
|
<i class="fas fa-minus-square"></i> {{translate("VIEW_DELETED")}}
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user