Main Koha release repository https://koha-community.org
Find a file
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
acqui Bug 9346 - acqui/neworderempty.pl ignores exchange rates and destroys user data on page load 2013-01-07 20:47:38 -05:00
admin Bug 9272: Eliminate error when deleting authorized value 2012-12-28 20:10:55 -05:00
authorities
basket
C4 Bug 9076 - QA Followup - Rename GetBorrowersWhoHaveNotBorrowedSince to GetBorrowersToExpunge 2013-01-07 22:01:36 -05:00
catalogue Bug 8377: Followup move style in a css file and do not pass template to a pm 2012-12-27 09:28:00 -05:00
cataloguing Bug 9105: Housekeeping followup 2012-12-22 16:16:59 -05:00
circ Bug 9140: Followup removes the useless variable $message 2012-12-22 16:02:55 -05:00
debian Bug 9260: stop koha-run-backups complaining "missing ]" 2012-12-21 08:11:39 -05:00
docs Add Bernardo Gonzalez Kriegel to history 2012-12-27 10:17:27 -05:00
errors
etc Bug 8984: make Zebra more UNIMARC compliant 2013-01-04 08:39:56 -05:00
install_misc Bug 8519 - Make koha-index-daemon run on startup 2012-12-07 09:19:18 -05:00
installer Revert "Bug 7167: New version for updatedatabase" 2012-12-27 14:02:56 -05:00
Koha Bug 9209 - Mocked Koha::Calendar tests 2012-12-28 20:15:35 -05:00
koha-tmpl Bug 9076: Followup: FIX ergonomic issues 2013-01-07 22:01:36 -05:00
labels
members Bug 9141 - Untranslatable strings on "pay an amount..." page 2013-01-07 20:48:42 -05:00
misc Merge branch 'bug_8977' into 3.12-master 2013-01-09 08:18:34 -05:00
offline_circ
opac Bug 9009 - Add separate user js and css for SCO module 2012-12-27 10:05:28 -05:00
patroncards
reports Bug 7896: follow-up: Allow translation of strings 2012-12-02 09:40:46 -05:00
reserve Bug 9206: Followup QA FIX 2012-12-27 09:48:03 -05:00
reviews Bug 1623 - Provide view of approved comments 2011-12-27 18:26:50 +01:00
rotating_collections
selenium
serials Bug 8782: Close a subscription 2012-11-30 08:14:24 -05:00
services
skel
sms
suggestion
svc
t Bug 9076 - QA Followup - Rename GetBorrowersWhoHaveNotBorrowedSince to GetBorrowersToExpunge 2013-01-07 22:01:36 -05:00
tags
test
tmp/modified_authorities
tools Bug 9065 - set correct permission for upload local cover image 2013-01-13 08:32:18 -05:00
virtualshelves
xt
.htaccess
.mailmap
about.pl Revert "Bug 7167: New version for updatedatabase" 2012-12-27 14:02:56 -05:00
changelanguage.pl
edithelp.pl
fix-perl-path.PL
help.pl
INSTALL
install-CPAN.pl
INSTALL.debian
INSTALL.fedora7
INSTALL.opensuse
INSTALL.ubuntu
INSTALL.ubuntu.12.04
INSTALL.ubuntu.lucid
koha_perl_deps.pl
kohaversion.pl Bug 9009: Increment version number 2012-12-27 10:05:56 -05:00
LICENSE
mainpage.pl Revert "Bug 7167: New version for updatedatabase" 2012-12-27 14:02:56 -05:00
Makefile.PL Bug 8519 - Make koha-index-daemon run on startup 2012-12-07 09:19:18 -05:00
MANIFEST.SKIP
README
README.robots
rewrite-config.PL

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/