When trying to save the permissions for a user or user group it's throwing an Integrity constraint violation – yii\db\IntegrityException 1062 Duplicate entry '60-2' for key 'userpermissions_usergroups.idx_xrqdllsquntbibzhsbfctltcthrzoiyrznrm'.
The duplicate key is the savepeerassets permission (Save assets uploaded by other users) which is also showing 2 times in the control panel https://i.imgur.com/6dHDJrC.png
Steps to reproduce
Check bot the Save assets uploaded by other users permissions options and save the user/group
What happened?
Description
When trying to save the permissions for a user or user group it's throwing an Integrity constraint violation – yii\db\IntegrityException 1062 Duplicate entry '60-2' for key 'userpermissions_usergroups.idx_xrqdllsquntbibzhsbfctltcthrzoiyrznrm'.
The duplicate key is the savepeerassets permission (Save assets uploaded by other users) which is also showing 2 times in the control panel https://i.imgur.com/6dHDJrC.png
Steps to reproduce
Craft CMS version
4.0.0-beta.4
PHP version
8.0.8
Operating system and version
Linux 5.11.0-1028-aws
Database type and version
MySQL 8.0.27
Image driver and version
Imagick 3.5.1 (ImageMagick 6.9.10-23)
Installed plugins and versions