-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
personalization-bundle/src/Installer.php
Lines 59 to 69 in e8c3be5
| private function addUserPermission(): void | |
| { | |
| $db = \Pimcore\Db::get(); | |
| foreach (self::USER_PERMISSIONS as $permission) { | |
| $db->insert('users_permission_definitions', [ | |
| $db->quoteIdentifier('key') => $permission, | |
| $db->quoteIdentifier('category') => self::USER_PERMISSIONS_CATEGORY, | |
| ]); | |
| } | |
| } |
The above throws an error if you used Personalization Bundle in Pimcore 10:
[ERROR] An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'targeting' for key 'users_permission_definitions.PRIMARY'