Bug 29903: Prevent messages to be deleted from unauthorised users
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 19 Jan 2022 10:21:54 +0000 (11:21 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Tue, 25 Jan 2022 19:44:56 +0000 (14:44 -0500)
commita2b9a76431a887aad7ebcee7b34fb921159271fd
treee7e105744a1c4278b83af7b692b385bea9632ca0
parent26ddbf796ac7767a1af259161be09558e9b00ef4
Bug 29903: Prevent messages to be deleted from unauthorised users

The "Delete" link is hidden but the controller does not do the necessary checks.

/cgi-bin/koha/circ/del_message.pl?message_id=1&borrowernumber=5&from=moremember

Test plan:
Create a message, see the "Delete" link, don't click it but copy it
Change logged in library and use the link
If AllowAllMessageDeletion is off you should be redirected to 403

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
circ/del_message.pl