Add import permission for label profiles (#1021)

This commit is contained in:
d-buchmann 2025-09-06 19:42:07 +02:00 committed by GitHub
parent 3e8ca06177
commit b1443a817b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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

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