mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Add import permission for label profiles (#1021)
This commit is contained in:
parent
3e8ca06177
commit
b1443a817b
2 changed files with 5 additions and 0 deletions
|
|
@ -359,6 +359,10 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
|
||||||
label: "perm.revert_elements"
|
label: "perm.revert_elements"
|
||||||
alsoSet: ['read_profiles', 'edit_profiles', 'create_profiles', 'delete_profiles']
|
alsoSet: ['read_profiles', 'edit_profiles', 'create_profiles', 'delete_profiles']
|
||||||
apiTokenRole: ROLE_API_EDIT
|
apiTokenRole: ROLE_API_EDIT
|
||||||
|
import:
|
||||||
|
label: "perm.import"
|
||||||
|
alsoSet: ['read_profiles', 'edit_profiles', 'create_profiles' ]
|
||||||
|
apiTokenRole: ROLE_API_EDIT
|
||||||
|
|
||||||
api:
|
api:
|
||||||
label: "perm.api"
|
label: "perm.api"
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ final class LabelProfileVoter extends Voter
|
||||||
'delete' => 'delete_profiles',
|
'delete' => 'delete_profiles',
|
||||||
'show_history' => 'show_history',
|
'show_history' => 'show_history',
|
||||||
'revert_element' => 'revert_element',
|
'revert_element' => 'revert_element',
|
||||||
|
'import' => 'import',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function __construct(private readonly VoterHelper $helper)
|
public function __construct(private readonly VoterHelper $helper)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue