Koha-clms/tools
Katrin Fischer 9ecf51eb43 Bug 9422: Don't allow access to 'Upload patron images' when patronimages syspref is off
In addition to checking the patron image upload permission, this
adds a check for the patronimages system preference to the tools
home page and sidebar.

To test:
- Check that the patron image upload tool only displays when
  - system preference patronimages is set to 'Allow'
    and user is either
  - superlibrarian or
  - has bath_upload_patron_images permission
- Save URL of patron image uploader page
- Turn off patronimages
- Verify you get redirected to the home page of Koha when trying
  to access the page

Note: this redirect is already used by the stock rotation feature.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 4ed4b51e4b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-05-11 19:17:04 +00:00
..
csv-profiles
…
quotes
…
access_files.pl
…
ajax-inventory.pl
…
automatic_item_modification_by_age.pl
…
background-job-progress.pl
…
batchMod.pl
…
batch_delete_records.pl
…
batch_extend_due_dates.pl
…
batch_record_modification.pl
…
batch_records_ajax.pl
…
cleanborrowers.pl
…
copy-holidays.pl
…
csv-profiles.pl
…
exceptionHolidays.pl
…
export.pl
…
holidays.pl
…
import_borrowers.pl
…
inventory.pl
…
koha-news.pl
…
letter.pl
…
manage-marc-import.pl
…
marc_modification_templates.pl
…
modborrowers.pl
…
newHolidays.pl
…
overduerules.pl
…
picture-upload.pl
…
quotes-upload.pl
…
quotes.pl
…
scheduler.pl
…
showdiffmarc.pl
…
stage-marc-import.pl
…
stockrotation.pl
…
tools-home.pl
…
upload-cover-image.pl
…
upload-file.pl
…
upload.pl
…
viewlog.pl
…