Update SAS rights

This commit is contained in:
Skia
2016-12-13 18:36:08 +01:00
parent e3c86c1d05
commit d7a065c4e2
3 changed files with 11 additions and 7 deletions

View File

@@ -62,7 +62,7 @@
{% for r in picture.people.all() %}
<li>
<a href="{{ r.user.get_absolute_url() }}">{{ r.user.get_short_name() }}</a>
{% if user == r.user or user.is_in_group(settings.SITH_GROUP_SAS_ADMIN_ID) %}
{% if user == r.user or user.can_edit(picture) %}
<a href="?remove_user={{ r.user.id }}">{% trans %}Delete{% endtrans %}</a>
{% endif %}
</li>