From 5d60b72bcc0d37146ad346ca3bbbabab807a4601 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 7 Nov 2022 13:54:58 +0000 Subject: [PATCH] Bug 32122: Correct permissions check on item circulation alerts This patch changes the check from 'item_circ_alerts' to 'manage_item_circ_alerts' To test: 1 - Give an account catalogue and manage_item_circ_alerts permissions 2 - Log in to staff client iwht this account 3 - Browse to Admin->Item circulation alerts 4 - Error, you do not have permission to view this page 5 - Apply patch 6 - Restart all 7 - Browse to page agian, success! Signed-off-by: Tomas Cohen Arazi --- admin/item_circulation_alerts.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/item_circulation_alerts.pl b/admin/item_circulation_alerts.pl index 57a3c7d123..8e79982928 100755 --- a/admin/item_circulation_alerts.pl +++ b/admin/item_circulation_alerts.pl @@ -41,7 +41,7 @@ sub show { template_name => "admin/item_circulation_alerts.tt", query => $input, type => "intranet", - flagsrequired => { parameters => 'item_circ_alerts' }, + flagsrequired => { parameters => 'manage_item_circ_alerts' }, debug => defined($input->param('debug')), } ); -- 2.39.5