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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Fri, 28 Jan 2022 14:24:10 +0000 (14:24 +0000)
commit28c609b902e02a6c1183c9270c607ce1b5ed6404
tree89e35c49e03f50feeb9a5abeb3129b5c733efdcd
parent718c57367e30dfea247d8ca815e1a8b401a9da3c
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: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
circ/del_message.pl