mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 22:14:32 +02:00
Added permissions to show history of and revert label profiles.
This commit is contained in:
parent
1a35adab17
commit
0f083abdf4
2 changed files with 10 additions and 0 deletions
|
@ -486,5 +486,13 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
|
||||||
label: "perm.labels.use_twig"
|
label: "perm.labels.use_twig"
|
||||||
bit: 12
|
bit: 12
|
||||||
alsoSet: ['create_labels', 'edit_options']
|
alsoSet: ['create_labels', 'edit_options']
|
||||||
|
show_history:
|
||||||
|
label: "perm.show_history"
|
||||||
|
bit: 14
|
||||||
|
alsoSet: ['read_profiles']
|
||||||
|
revert_element:
|
||||||
|
label: "perm.revert_elements"
|
||||||
|
bit: 16
|
||||||
|
alsoSet: ['read_profiles', 'edit_profiles', 'create_profiles', 'delete_profiles']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@ class LabelProfileVoter extends ExtendedVoter
|
||||||
'create' => 'create_profiles',
|
'create' => 'create_profiles',
|
||||||
'edit' => 'edit_profiles',
|
'edit' => 'edit_profiles',
|
||||||
'delete' => 'delete_profiles',
|
'delete' => 'delete_profiles',
|
||||||
|
'show_history' => 'show_history',
|
||||||
|
'revert_element' => 'revert_element',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue