]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Sat, 22 Oct 2016 12:59:53 +0000 (14:59 +0200)
commitf620fbe0d9ec8c4df258dd3a35b839b466479d52
tree31ea3e4fc85634ba7929a709442d5d32fe71b991
parent537d7d9fa4650aa35b8e20cbaf0cad7f7a4d2ba4
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>
(cherry picked from commit e78f81d615a79ad293d599c7395efcabd267662d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
members/patronimage.pl