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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 11 Feb 2022 11:09:10 +0000 (06:09 -0500)
commit244e798a514bebaa3928a81f195d7612f75d03c5
tree262075a23e4350258bf52ec9e6c326659460fb29
parente309da639f4edbe0ef4724e083826059e6de0d99
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: Kyle M Hall <kyle@bywatersolutions.com>
plugins/plugins-enable.pl