2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +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

@ -147,9 +147,11 @@
<h4>{% trans "Installed Stock Items" %}</h4>
{% include "spacer.html" %}
<div class='btn-group' role='group'>
{% if roles.stock.add %}
<button type='button' class='btn btn-success' id='stock-item-install'>
<span class='fas fa-plus-circle'></span> {% trans "Install Stock Item" %}
</button>
{% endif %}
</div>
</div>
</div>