mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-09 16:59:03 +01:00
Disable delete button, if the user is not allowed to delete a part.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ part.id) }}">
|
||||
<div class="form-group">
|
||||
<button class="btn btn-danger" {% if not is_granted("delete", part) %}disabled{% endif %}">
|
||||
<button class="btn btn-danger" {% if not is_granted("delete", part) %}disabled{% endif %}>
|
||||
<i class="fa fa-trash fa-fw"></i>
|
||||
{% trans %}part.delete{% endtrans %}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user