]> git.koha-community.org Git - koha.git/commit
Bug 37247: Fix subscriptions operation allowed without authentication
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 4 Jul 2024 14:18:17 +0000 (16:18 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 25 Jul 2024 14:24:53 +0000 (14:24 +0000)
commitfc22f96aace8cd918b1a350b4bbd7591944943c1
treeb9f2efa945740c7029abcb2c0285a1040fe23393
parent62f80f1efeeabe088291f3d4fbe13903b5b99646
Bug 37247: Fix subscriptions operation allowed without authentication

Move close and reopen after get_template_and_user().
Also move Koha::Subscriptions->find(), not a good idea to run DB queries
before authentication.

Test plan :
1) Apply patch
2) Authenticate to staff interface
3) Go to an existing open subscription
4) Open a new browser tab and use it to log-out
5) Go to first tab and click on 'Close'
6) You get login page
7) Authenticate
8) Check subscription is not closed
9) Check you can close and reopen subscription

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
serials/subscription-detail.pl