mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 10:14:44 +02:00
Added permission to control if a user is allowed to withdraw/add/move parts
This commit is contained in:
parent
89a4846259
commit
60d5776cb7
7 changed files with 55 additions and 5 deletions
|
@ -27,7 +27,7 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
|
|||
'currencies.read', 'attachment_types.read', 'measurement_units.read']
|
||||
edit:
|
||||
label: "perm.edit"
|
||||
alsoSet: 'read'
|
||||
alsoSet: ['read', 'parts_stock.withdraw', 'parts_stock.add', 'parts_stock.move']
|
||||
create:
|
||||
label: "perm.create"
|
||||
alsoSet: ['read', 'edit']
|
||||
|
@ -44,6 +44,18 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
|
|||
label: "perm.revert_elements"
|
||||
alsoSet: ["read", "edit", "create", "delete", "show_history"]
|
||||
|
||||
parts_stock:
|
||||
group: "data"
|
||||
label: "perm.parts_stock"
|
||||
operations:
|
||||
withdraw:
|
||||
label: "perm.parts_stock.withdraw"
|
||||
add:
|
||||
label: "perm.parts_stock.add"
|
||||
move:
|
||||
label: "perm.parts_stock.move"
|
||||
|
||||
|
||||
storelocations: &PART_CONTAINING
|
||||
label: "perm.storelocations"
|
||||
group: "data"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue