From b8907433e6c7ba21b33a653cf5b649b561efd8b9 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Mon, 18 Nov 2024 17:32:18 +0000 Subject: [PATCH] Bug 38446: Allow those with ERM permissions to access extended attributes Test plan: 1. Log in as superlibrarian 2. Activate ERM 3. Add a new additional field for Licences under cgi-bin/koha/admin/additional-fields.pl 4. Go to ERM Module 5. Add a Licence and use the new additional field 6. Search for a user, for example borrowernumber=17 7. Give permissions for erm , acquisition and catalogue (staff access) 8. Log in with this account 9. Go to ERM Module 10. Try to edit the licence with the additional field you have created in step 5 11. Apply patch and run yarn api:bundle and then restart_all 12. Repeat steps 9 and 10 13. The permissions error should vanish Signed-off-by: William Lavoie Signed-off-by: Katrin Fischer --- api/v1/swagger/paths/extended_attribute_types.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/v1/swagger/paths/extended_attribute_types.yaml b/api/v1/swagger/paths/extended_attribute_types.yaml index eba7aec9017..2fe8ddb4139 100644 --- a/api/v1/swagger/paths/extended_attribute_types.yaml +++ b/api/v1/swagger/paths/extended_attribute_types.yaml @@ -59,4 +59,6 @@ $ref: "../swagger.yaml#/definitions/error" x-koha-authorization: permissions: - parameters: manage_additional_fields + - parameters: + - manage_additional_fields + - erm: 1 -- 2.39.5