Split pending organisations into a separate list and default to only returning organisations a user is an accepted member of (Fixes #1)
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<i class="fas fa-minus-square"></i> {{translate("VIEW_DELETED")}}
|
||||
</button>
|
||||
{% elseif checkAccess('register_organisation') %}
|
||||
{% if (organisationConfig.membership.single_membership == 0) or (current_user.organisations.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">
|
||||
<i class="fas fa-plus-square"></i> {{translate("ORGANISATION.REGISTRATION.REGISTER")}}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user