Koha-clms/tools
Fridolyn SOMERS 774f7eece6 Bug 9065 - set correct permission for upload local cover image
This patch fixes a problem where if a staff user has the
upload_local_cover_images permission (and is not a superlibrarian
and does not have all of the tools permissions), trying to use the
"Tools -> Upload local cover image" will fail with "You do not have
permissions [...]".

To test after applying the patch:

- Create a staff uesr that has just the catalogue and
  upload_local_cover_images permission.
- Log in as that staff user.
- Go to "Tools -> Upload local cover image".
- Verify that one is given the form to upload a cover image.
- Without the patch, one will be presented with the login
  form instead.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

mysql> select * from permissions where code="upload_cover_images";
Empty set (0.00 sec)

mysql> select * from permissions where code="upload_local_cover_images";
+------------+---------------------------+---------------------------+
| module_bit | code                      | description               |
+------------+---------------------------+---------------------------+
|         13 | upload_local_cover_images | Upload local cover images |
+------------+---------------------------+---------------------------+
1 row in set (0.00 sec)

"git grep upload_cover_images" returns 0 result.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2013-01-15 17:29:02 +13:00
..
csv-profiles MT2116: Addons to the CSV export 2010-02-17 07:51:33 -05:00
background-job-progress.pl Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
batchMod.pl bug 6372: moved background-job.inc to background-job-progressbar.js 2012-05-08 09:53:04 +12:00
cleanborrowers.pl Bug 7310: Improving list permissions: Deleting patron 2012-03-21 16:47:03 +01:00
copy-holidays.pl Bug 7477: Copy holidays from one branch to another 2012-03-19 18:10:44 +01:00
csv-profiles.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
exceptionHolidays.pl Bug 2505: Enabled warnings in tools-home.pl, holidays.pl, exceptionHolidays.pl, and newHolidays.pl 2009-09-12 08:38:35 -04:00
export.pl Bug 8843 [3.8.x] Cannot export bibliographic records by call number 2012-12-14 08:31:04 +13:00
holidays.pl Bug 7833 - unique holiday link broken 2012-04-19 10:54:00 +02:00
import_borrowers.pl Bug 5373 - allow 'cardnumber' to appear on the patron import field list 2012-02-21 17:04:18 +01:00
inventory.pl Bug 6453 Corrects the barcode comparisons in inventory.pl 2011-06-20 11:59:50 +12:00
koha-news.pl Fix for Bug 6306 - It is not possible edit news 2011-05-29 16:05:34 +12:00
letter.pl Bug 7848 - Issues data missing from circulation notices 2012-07-12 10:43:40 +12:00
manage-marc-import.pl Bug 8315 - remove use C4::* version 2012-07-14 10:26:07 +12:00
newHolidays.pl Bug 6663: Features for holidays.pl with datepicker 2011-12-13 15:07:05 +01:00
overduerules.pl Bug #6064 Improvement of default value usage in overdue 2011-04-07 21:33:40 +12:00
pdfViewer.pl Convert to UTF-8. 2010-05-06 17:58:54 -04:00
picture-upload.pl Bug 7643 - Can't upload and import zipped file of patron images 2012-10-14 20:22:29 +13:00
scheduler.pl Bug 2505 - Add commented use warnings where missing in the tools/ directory 2010-04-21 20:26:38 +12:00
stage-marc-import.pl Merge remote-tracking branch 'kc/new/bug_5449' into kcmaster 2011-05-09 08:25:36 +12:00
tools-home.pl Bug 7259 - Show a count of items pending approval on staff client home and tools pages 2011-12-08 12:04:28 +01:00
upload-cover-image.pl Bug 9065 - set correct permission for upload local cover image 2013-01-15 17:29:02 +13:00
upload-file-progress.pl Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
upload-file.pl Bug 7775 - tools/upload-file.pl: scoping for plack 2012-03-26 18:17:45 +02:00
viewlog.pl Bug 7870 : Replace itemnumber by barcode in links of patron modification log 2012-05-12 09:09:22 +12:00