Koha/tools
Fridolyn SOMERS e81cc3d1d3 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>
2013-01-13 08:32:18 -05:00
..
csv-profiles MT2116: Addons to the CSV export 2010-02-17 07:51:33 -05:00
quotes Bug 9010 - Follou up Quote of the day: Umlauts do not display correctly 2012-11-09 20:02:11 -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 7919 : Display of values depending on the connexion library 2012-12-05 10:10:57 -05:00
cleanborrowers.pl Bug 9076 - QA Followup - Rename GetBorrowersWhoHaveNotBorrowedSince to GetBorrowersToExpunge 2013-01-07 22:01:36 -05: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 7351 : feature that allows to delete a range of dates 2012-09-28 12:19:45 +02:00
export.pl Bug 7368: Update GetXmlBiblio documentation 2012-12-27 10:14:19 -05:00
holidays.pl Bug 7833 - unique holiday link broken 2012-04-19 10:54:00 +02:00
import_borrowers.pl Bug 7919 : Display of values depending on the connexion library 2012-12-05 10:10:57 -05: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-10 13:50:10 +02:00
manage-marc-import.pl Bug 2060 follow-up: add support for UNIMARCAUTH 2012-09-19 17:16:23 +02:00
modborrowers.pl Bug 8980 - Untranslatable strings in modborrowers.pl 2012-10-30 18:28:35 +01:00
newHolidays.pl Bug 8842 fix Plack scoping for holidays 2012-11-05 08:41:17 -05:00
overduerules.pl Bug 8904: fix Plack scoping for overduerules.pl 2012-11-04 19:58:33 -05: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-12 16:31:46 +02:00
quotes-upload.pl Bug 7977: QOTD uploader to enable uploading csv files containing quotes 2012-05-24 14:14:09 +02:00
quotes.pl Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC 2012-05-24 14:14:05 +02: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 Bug 2060: Update command line MARC import scripts 2012-09-19 17:16:18 +02: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-13 08:32:18 -05: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 Replace itemnumber by barcode in links of patron modification log 2012-05-11 11:24:57 +02:00