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:
2022-02-22 13:47:44 +00:00
parent e825050814
commit be8404c9a5
9 changed files with 44 additions and 17 deletions

View File

@@ -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>