Skip to content

Commit b1443a8

Browse files
authored
Add import permission for label profiles (#1021)
1 parent 3e8ca06 commit b1443a8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/permissions.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
359359
label: "perm.revert_elements"
360360
alsoSet: ['read_profiles', 'edit_profiles', 'create_profiles', 'delete_profiles']
361361
apiTokenRole: ROLE_API_EDIT
362+
import:
363+
label: "perm.import"
364+
alsoSet: ['read_profiles', 'edit_profiles', 'create_profiles' ]
365+
apiTokenRole: ROLE_API_EDIT
362366

363367
api:
364368
label: "perm.api"

src/Security/Voter/LabelProfileVoter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ final class LabelProfileVoter extends Voter
5959
'delete' => 'delete_profiles',
6060
'show_history' => 'show_history',
6161
'revert_element' => 'revert_element',
62+
'import' => 'import',
6263
];
6364

6465
public function __construct(private readonly VoterHelper $helper)

0 commit comments

Comments
 (0)