Skip to content

Commit dc0c4eb

Browse files
committed
Add import permission for label profiles
1 parent a6be786 commit dc0c4eb

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

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
@@ -58,6 +58,7 @@ final class LabelProfileVoter extends Voter
5858
'delete' => 'delete_profiles',
5959
'show_history' => 'show_history',
6060
'revert_element' => 'revert_element',
61+
'import' => 'import',
6162
];
6263

6364
public function __construct(private readonly VoterHelper $helper)

0 commit comments

Comments
 (0)