A low privileged staff user (i.e. one with just the 'catalogue' permission to enable logging into the staff client) can access and change/add/delete printer profiles. This functionality should be behind an escalated privilege.
% git grep flagsrequired patroncards [11:20:56] patroncards/add_user_search.pl: flagsrequired => { catalogue => 1 }, patroncards/create-pdf.pl: flagsrequired => { tools => 'label_creator' }, patroncards/edit-batch.pl: flagsrequired => { catalogue => 1 }, patroncards/edit-layout.pl: flagsrequired => { catalogue => 1 }, patroncards/edit-profile.pl: flagsrequired => { catalogue => 1 }, patroncards/edit-template.pl: flagsrequired => { catalogue => 1 }, patroncards/home.pl: flagsrequired => { catalogue => 1 }, patroncards/image-manage.pl: flagsrequired => {tools => 'batch_upload_patron_images'}, # FIXME: establish flag for patron card creator patroncards/manage.pl: flagsrequired => { catalogue => 1 }, patroncards/print.pl: flagsrequired => { catalogue => 1 }, Should they all use tools => batch_upload_patron_images?
Hm, I believe label_creator would probably make more sense here. And the manage image is, I think, not only about patron images, but could be general ones too.
Yes, I think I agree Katrin.. sorry for the slow reply.. was still wrapping my brain around what permission was most suitable.
Created attachment 117059 [details] [review] Bug 27716: Update permissions for patroncards creator The various subpages of the label creator tool we're under the 'catalogue' permission. There is however a 'label_creator' subpermission of tools which is more appropriate. Test plan 1/ Setup a user with just the 'catelogue' permission (to enable logging into the staff interface) 2/ With the patch applied you should not be able to access the following pages (either via navigation in the UI or by typing them into the browser address bar directly) - /patroncards/add_user_search.pl - /patroncards/edit-batch.pl - /patroncards/edit-layout.pl - /patroncards/edit-profile.pl - /patroncards/edit-template.pl - /patroncards/home.pl - /patroncards/image-manage.pl - /patroncards/manage.pl - /patroncards/print.pl 3/ Signoff
Created attachment 117197 [details] [review] Bug 27716: Update permissions for patroncards creator The various subpages of the label creator tool we're under the 'catalogue' permission. There is however a 'label_creator' subpermission of tools which is more appropriate. Test plan 1/ Setup a user with just the 'catelogue' permission (to enable logging into the staff interface) 2/ With the patch applied you should not be able to access the following pages (either via navigation in the UI or by typing them into the browser address bar directly) - /patroncards/add_user_search.pl - /patroncards/edit-batch.pl - /patroncards/edit-layout.pl - /patroncards/edit-profile.pl - /patroncards/edit-template.pl - /patroncards/home.pl - /patroncards/image-manage.pl - /patroncards/manage.pl - /patroncards/print.pl 3/ Signoff Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 117742 [details] [review] Bug 27716: Update permissions for patroncards creator The various subpages of the label creator tool we're under the 'catalogue' permission. There is however a 'label_creator' subpermission of tools which is more appropriate. Test plan 1/ Setup a user with just the 'catelogue' permission (to enable logging into the staff interface) 2/ With the patch applied you should not be able to access the following pages (either via navigation in the UI or by typing them into the browser address bar directly) - /patroncards/add_user_search.pl - /patroncards/edit-batch.pl - /patroncards/edit-layout.pl - /patroncards/edit-profile.pl - /patroncards/edit-template.pl - /patroncards/home.pl - /patroncards/image-manage.pl - /patroncards/manage.pl - /patroncards/print.pl 3/ Signoff Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 117743 [details] [review] Bug 27716: Update permissions for patroncards creator The various subpages of the label creator tool we're under the 'catalogue' permission. There is however a 'label_creator' subpermission of tools which is more appropriate. Test plan 1/ Setup a user with just the 'catelogue' permission (to enable logging into the staff interface) 2/ With the patch applied you should not be able to access the following pages (either via navigation in the UI or by typing them into the browser address bar directly) - /patroncards/add_user_search.pl - /patroncards/edit-batch.pl - /patroncards/edit-layout.pl - /patroncards/edit-profile.pl - /patroncards/edit-template.pl - /patroncards/home.pl - /patroncards/image-manage.pl - /patroncards/manage.pl - /patroncards/print.pl 3/ Signoff Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Pushed to master for 21.05, thanks to everybody involved!
I'm not anxious to change permissions outside of a full version upgrade. Not backporting to 20.05, but feel free to ask if needed.
Was this still getting considered for 20.11?
Pushed to 20.11.x for 20.11.04
20.11 is still young so I think permission change is not a problem. I understand it is different of older versions.