Bug 29931: Check cookie status before continuing
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 24 Jan 2022 10:24:08 +0000 (10:24 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 16 Mar 2022 08:30:50 +0000 (22:30 -1000)
commit63f641daa6e382eac55c90dff89673dce6d69928
tree623682af29756793664459cc38f4c8ba05448573
parent975f52a4cfe14ed1b198531827fb6eb2f2c23b2f
Bug 29931: Check cookie status before continuing

Test plan:
Logout from staff.
Try to run plugins-enable (you should have some active plugin).
Like: https://yourserver:staffport/cgi-bin/koha/plugins/plugins-enable.pl?class=Koha::Plugin::Test&method=enable
Replace class and method as appropriate.
Verify that with this patch, you will be redirected to 401 page.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
plugins/plugins-enable.pl