diff --git a/CHANGELOG.md b/CHANGELOG.md index 14fbe8e7a..2d3a30982 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ * Show country name in user address instead of country id. Refs UIU-2976. * Add patron notice print jobs to action menu. Refs UIU-3029. * Update sub permissions of permission 'Users: Can view user profiles'. Refs UIU-3038. +* Create new permission 'Users: Can view, edit, and delete profile pictures'. Refs UIU-3025. ## [10.0.4](https://github.com/folio-org/ui-users/tree/v10.0.4) (2023-11-10) [Full Changelog](https://github.com/folio-org/ui-users/compare/v10.0.3...v10.0.4) diff --git a/package.json b/package.json index f9696f54f..f961adf73 100644 --- a/package.json +++ b/package.json @@ -982,7 +982,7 @@ "visible": true }, { - "permissionName": "ui-users.profilepictures.view", + "permissionName": "ui-users.profile-pictures.view", "displayName": "Users: Can view profile pictures", "description": "Also includes basic permissions to view users", "subPermissions": [ @@ -992,6 +992,20 @@ ], "visible": true }, + { + "permissionName": "ui-users.profile-pictures.all", + "displayName": "Users: Can view, edit, and delete profile pictures", + "description": "Also includes basic permissions to edit user profile", + "subPermissions": [ + "ui-users.profile-pictures.view", + "ui-users.edit", + "users.profile-picture.item.post", + "users.profile-picture.item.put", + "users.profile-picture.item.delete" + + ], + "visible": true + }, { "permissionName": "ui-users.settings.general.view", "displayName": "Settings (Users): Can view general entries", diff --git a/translations/ui-users/en.json b/translations/ui-users/en.json index 5c89f7c7a..bd46d7cd6 100644 --- a/translations/ui-users/en.json +++ b/translations/ui-users/en.json @@ -1010,7 +1010,8 @@ "permission.manual_pay": "Fees/Fines: Can pay", "permission.manual_waive": "Fees/Fines: Can waive", "permission.patron_blocks": "Users: Can create, edit and remove patron blocks", - "permission.profilepictures.view": "Users: Can view profile pictures", + "permission.profile-pictures.view": "Users: Can view profile pictures", + "permission.profile-pictures.all": "Users: Can view, edit, and delete profile pictures", "permission.requests.all": "Users: View requests", "permission.reset.password": "Users: Create/reset password", "permission.settings.view": "Settings (Users): View all settings",