don't allow non-manager to add and remove group members
This commit is contained in:
parent
035fc5209d
commit
ec0720514e
2 changed files with 6 additions and 5 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue