2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Hide buttons for users without required permissions (#3219)

This commit is contained in:
Oliver
2022-06-18 14:49:46 +10:00
committed by GitHub
parent 12fcccb5a6
commit 36868ebb4c
3 changed files with 10 additions and 2 deletions

View File

@ -20,9 +20,11 @@
<h4>{% trans "Part Stock" %}</h4>
{% include "spacer.html" %}
<div class='btn-group' role='group'>
{% if roles.stock.add %}
<button type='button' class='btn btn-success' id='new-stock-item' title='{% trans "Create new stock item" %}'>
<span class='fas fa-plus-circle'></span> {% trans "New Stock Item" %}
</button>
{% endif %}
</div>
</div>
</div>