non-owners can't add users to groups

- hide add-user pages from non-owners
- hide user searchbox from non-owners
- fix find-user searchbox being in wrong place where no results
This commit is contained in:
Hugh Rundle
2021-10-02 14:41:23 +10:00
parent 5237e88aba
commit 70e0128052
3 changed files with 23 additions and 5 deletions

View File

@ -61,6 +61,7 @@
{% include "snippets/pagination.html" with page=items %}
</section>
{% if group.user == request.user %}
<section class="column is-one-quarter">
<div class="block">
<h2 class="title is-5">Find new members</h2>
@ -78,6 +79,7 @@
</form>
</div>
</section>
{% endif %}
</div>
{% endblock %}