]> git.koha-community.org Git - koha.git/commit
Bug 32976: Add permission check on Add/Edit controls for patron images
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 26 Feb 2023 11:20:34 +0000 (11:20 +0000)
committerJacob O'Mara <jacobomara901@gmail.com>
Sun, 16 Apr 2023 17:09:22 +0000 (18:09 +0100)
commitefae5289cd171b19be310682abc0467f1d30fa9f
tree5a464d049bc2115586d9e11dc90a6aa507d9a4b4
parent6833e1b3f70a356bc9ba6ae50ed048324e60664f
Bug 32976: Add permission check on Add/Edit controls for patron images

This adds a check on the batch_upload_patron_images permission
to the Add/Edit control for patron images in the patron account
in the staff interface.

To test:
* Enable patronimages system preference
* With your 'superlibrarian' account:
* Add and edit/remove a patron image to an account
* Create a staff user with batch_upload_patron_images permission
* Log in with this user and verify everything works the same
  as before
* Remove the batch_upload_patron_images permission
* Verify the Add/Edit controls are on longer visible to this
  patron

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 600c6d2282363ffcc62c6002e39cdb5a45414e75)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc