The functionality in cataloging Link Authorities Automatically requires top level cataloging permissions. This is a problem as if you are using Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required) (edit_items_restricted), you would need that permission enabled which will cause top level catalogers from being able to edit all things. This functionality should only require edit_catalogue.
Created attachment 141067 [details] [review] Bug 31643: Require only edit_catalogue, not full cataloging To test: 1 - Grant a patron: catalogue, edit_catalogue, and editauthorities permissions 2 - Log in to staff client 3 - Browse to: http://localhost:8081/cgi-bin/koha/svc/cataloguing/automatic_linker.pl 4 - UNAUTHORIZED 5 - Apply patch, restart all 6 - Log in and go to link again 7 - status "OK"
Created attachment 141170 [details] [review] Bug 31643: Require only edit_catalogue, not full cataloging To test: 1 - Grant a patron: catalogue, edit_catalogue, and editauthorities permissions 2 - Log in to staff client 3 - Browse to: http://localhost:8081/cgi-bin/koha/svc/cataloguing/automatic_linker.pl 4 - UNAUTHORIZED 5 - Apply patch, restart all 6 - Log in and go to link again 7 - status "OK" Signed-off-by: Catrina <catrina@bywatersolutions.com>
Works as expected. Allows for Linking authorities in record editing with those staff permissions set.
Created attachment 141200 [details] [review] Bug 31643: Require only edit_catalogue, not full cataloging To test: 1 - Grant a patron: catalogue, edit_catalogue, and editauthorities permissions 2 - Log in to staff client 3 - Browse to: http://localhost:8081/cgi-bin/koha/svc/cataloguing/automatic_linker.pl 4 - UNAUTHORIZED 5 - Apply patch, restart all 6 - Log in and go to link again 7 - status "OK" Signed-off-by: Catrina <catrina@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Pushed to master for 22.11. Nice work everyone, thanks!
Any chance of backporting this to 22.05?
Backported to 22.05.x for upcoming 22.05.08 release
applied to 21.11.x for 21.11.15
Backported to 21.05.x for 21.05.22
Not released in 21.05.22
(In reply to wainuiwitikapark from comment #10) > Not released in 21.05.22 Reverted from 21.05 branch