mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 16:26:17 +00:00
Updated StockItem create/edit view with ownership control
This commit is contained in:
1 parent
2d7461f609
commit
c66ac2579e
2 files changed
+56
-2
No files matched your search
@@ -12,7 +12,7 @@
|
||||
{% if read_only %}
|
||||
{% else %}
|
||||
<!-- Check permissions and owner -->
|
||||
{% if owner_enable.value == "False" or owner_enable.value == "True" and location.owner in user.groups.all %}
|
||||
{% if owner_enable.value == "False" or owner_enable.value == "True" and location.owner in user.groups.all or user.is_superuser %}
|
||||
{% if roles.stock.add %}
|
||||
<button class="btn btn-success" id='item-create'>
|
||||
<span class='fas fa-plus-circle'></span> {% trans "New Stock Item" %}
|
||||
|
||||
Reference in new issue
Block a user