Implemented permissions on Admin pages.

This commit is contained in:
Jan Böhmer 2019-04-13 19:03:45 +02:00
parent 6649460ed6
commit 004c7970a7
4 changed files with 42 additions and 14 deletions

View file

@ -6,7 +6,7 @@
<div class="form-group">
<div class=""></div>
<div class="col offset-3 pl-2">
<button class="btn btn-danger">{% trans %}entity.delete{% endtrans %}</button>
<button class="btn btn-danger" {% if not is_granted("delete", entity) %}disabled{% endif %}">{% trans %}entity.delete{% endtrans %}</button>
</div>
</div>
</form>