]> git.koha-community.org Git - koha.git/commit
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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 31 Jan 2022 18:15:45 +0000 (19:15 +0100)
commitb730f85de8fd082c38d17a3f53614424e9ff3364
treeea5277a6ba1a93f382d55494c610e0149b541de7
parent0bb3edf936b6813dbbe1c12cac792ccc90d7f965
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>
(cherry picked from commit a2b9a76431a887aad7ebcee7b34fb921159271fd)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
circ/del_message.pl