don't allow non-manager to add and remove group members

This commit is contained in:
Hugh Rundle
2021-09-25 20:25:30 +10:00
parent 035fc5209d
commit ec0720514e
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{% load i18n %}
{% if request.user == user or not request.user.is_authenticated %}
{% if request.user == user or not request.user == group.manager or not request.user.is_authenticated %}
<!-- TODO: blocking is irrelevant here, but ...is it? -->
{% elif user in request.user.blocks.all %}
{% include 'snippets/block_button.html' with blocks=True %}