mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
permission added
This commit is contained in:
parent
9a42421852
commit
900f707ff9
@ -30,12 +30,14 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
{% if user.is_staff and roles.part.add %}
|
||||||
<li class='list-group-item {% if tab == "import" %}active{% endif %}' title='{% trans "Import Parts" %}'>
|
<li class='list-group-item {% if tab == "import" %}active{% endif %}' title='{% trans "Import Parts" %}'>
|
||||||
<a href='{% url "part-import" %}'>
|
<a href='{% url "part-import" %}'>
|
||||||
<span class='fas fa-file-upload'></span>
|
<span class='fas fa-file-upload'></span>
|
||||||
{% trans "Import Parts" %}
|
{% trans "Import Parts" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if category %}
|
{% if category %}
|
||||||
<li class='list-group-item {% if tab == "parameters" %}active{% endif %}' title='{% trans "Parameters" %}'>
|
<li class='list-group-item {% if tab == "parameters" %}active{% endif %}' title='{% trans "Parameters" %}'>
|
||||||
|
@ -725,6 +725,7 @@ class PartCreate(AjaxCreateView):
|
|||||||
|
|
||||||
class PartImport(FileManagementFormView):
|
class PartImport(FileManagementFormView):
|
||||||
''' Part: Upload file, match to fields and import parts(using multi-Step form) '''
|
''' Part: Upload file, match to fields and import parts(using multi-Step form) '''
|
||||||
|
permission_required = 'part.add'
|
||||||
|
|
||||||
class MyFileManager(FileManager):
|
class MyFileManager(FileManager):
|
||||||
REQUIRED_HEADERS = [
|
REQUIRED_HEADERS = [
|
||||||
|
Loading…
Reference in New Issue
Block a user