]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 23 Jul 2024 10:03:59 +0000 (12:03 +0200)
commit45007a58e23a1840b79b2d73ea21522d610ca9ce
tree4a7c36bdadf0c68b2d96b364bf41e8651016218f
parentf55c0039bdaff2eb3888d7e01be0e86044aca9cf
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>
(cherry picked from commit 42c2dd78ef52ec00afd6307ef179c491615c7085)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
serials/subscription-detail.pl