]> git.koha-community.org Git - koha.git/commit
Bug 12098: Fix C4::Serials::can_edit_subscription
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 16 Apr 2014 14:50:23 +0000 (16:50 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 7 Aug 2014 08:25:56 +0000 (10:25 +0200)
commit38189555a346751287315453bce46880d13c701e
tree368fe22c0d13225d61899438b6f2e1b7920fc5b5
parentdc3bb08992e47800dfb887d72b54c2677d7ab198
Bug 12098: Fix C4::Serials::can_edit_subscription

This patch fixes a problem whereby staff users could
edit subscriptions they are not permitted to by going directly
to the subscription details page.

It also adds some unit tests for the can_edit_subscription routine
and add a new can_show_subscription routines.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Notes on second patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 4f7803e469a41cafb993c6d41e6481499e6cca93)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Serials.pm
t/db_dependent/Serials_2.t