Implemented permission system for part parameters.

This commit is contained in:
Jan Böhmer 2020-03-26 13:09:25 +01:00
parent e72fc2716b
commit f8af23b92b
6 changed files with 30 additions and 3 deletions

View file

@ -21,7 +21,7 @@
</tbody>
</table>
<button type="button" class="btn btn-success" onclick="create_specification_entry(this)" {% if not is_granted('orderdetails.create', part) %}disabled{% endif %}>
<button type="button" class="btn btn-success" onclick="create_specification_entry(this)" {% if not is_granted('parameters.create', part) %}disabled{% endif %}>
<i class="fas fa-plus-square fa-fw"></i>
{% trans %}specification.create{% endtrans %}
</button>