Add import permission for label profiles

This commit is contained in:
d-buchmann 2025-09-04 10:28:03 +02:00
parent a6be786d5d
commit dc0c4eb1d7
2 changed files with 5 additions and 0 deletions

View file

@ -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"

View file

@ -58,6 +58,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)