]> git.koha-community.org Git - koha.git/commit
Bug 17423 - patronimage.pl permission is too restrictive
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 11 Oct 2016 08:00:56 +0000 (10:00 +0200)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Mon, 17 Oct 2016 23:44:25 +0000 (23:44 +0000)
commite78f81d615a79ad293d599c7395efcabd267662d
tree11b61efb88ae6a41f525c99afa15a64f8eee76da
parentba8ee98e1bb3b18f579c0b122b14d43e88cda2c8
Bug 17423 - patronimage.pl permission is too restrictive

Bug 14566 added the permission "borrowers" on patronimage.pl.
This perm is too restrictive because circulation pages also uses this page.

I propose to simply use "catalogue" perm.

Test plan
- Set an image to borrower xx
- Create a user with only catalogue permission
- Log with this user
- Go to page (replace xx by borrower number) : /cgi-bin/koha/members/patronimage.pl?borrowernumber=xx
=> Without patch you get the page saying you do not have the permission
=> With patch you get the image
- Log out and retest the page patronimage.pl
=> You get 403 error

Signed-off-by: remy <remy.gonzalves@iepg.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
members/patronimage.pl