Added permissions to show history of and revert label profiles.

This commit is contained in:
Jan Böhmer 2020-05-07 22:35:29 +02:00
parent 1a35adab17
commit 0f083abdf4
2 changed files with 10 additions and 0 deletions

View file

@ -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']

View file

@ -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',
]; ];
/** /**