Koha/serials
Fridolin Somers e3a0ad463b
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: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-01 17:26:38 +02:00
..
acqui-search-result.pl
acqui-search.pl
checkexpiration.pl
claims.pl
create-numberpattern.pl
lateissues-export.pl Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
reorder_members.pl
routing-preview.pl Bug 31335: Remove unnecessary holds fetch from routing-preview 2024-04-26 18:06:20 +02:00
routing.pl Bug 35329: Handle duplicate without 500 2024-03-01 11:01:26 +01:00
serials-collection.pl Bug 32392: Fix QA issues 2024-04-29 15:19:31 +02:00
serials-edit.pl Bug 32392: Enable skipping forward issues when receiving serials. 2024-04-29 15:19:30 +02:00
serials-home.pl
serials-search.pl Bug 26567: Allow to limit subscription search to subscriptions with routing lists 2024-05-10 16:45:44 +02:00
showpredictionpattern.pl Bug 35646: Allow use of publication date fields in serial numbering pattern 2024-04-29 09:35:44 +02:00
subscription-add.pl Bug 34478: Manual fix - serials/subscription-add.pl 2024-03-01 11:00:02 +01:00
subscription-batchedit.pl Bug 37183: Batch edit serial subscriptions sets expiration date to today 2024-07-01 18:55:40 +02:00
subscription-bib-search.pl Bug 34478: Corrections to some serials scripts 2024-03-01 11:00:10 +01:00
subscription-detail.pl Bug 37247: Fix subscriptions operation allowed without authentication 2024-08-01 17:26:38 +02:00
subscription-frequencies.pl Bug 37165: Can't edit frequencies due to stray cud- in modify op 2024-06-27 11:49:57 +02:00
subscription-frequency.pl
subscription-history.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
subscription-numberpattern.pl
subscription-numberpatterns.pl Bug 34478: Update numbering patterns modification and deletion 2024-03-01 10:59:41 +01:00
subscription-renew.pl Bug 34478: Adjust 'op' on serials/subscription-renew 2024-03-01 11:00:16 +01:00
viewalerts.pl