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 <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-11-07 13:54:58 +00:00 committed by Tomas Cohen Arazi
parent ee7234640b
commit 5d60b72bcc
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -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')),
}
);