]> 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)
committerWainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
Sun, 30 Jan 2022 23:53:45 +0000 (23:53 +0000)
commit2ec64eaa23df015adae3e7725e27bf9f918cd8e1
tree0e7051faffdf566b9d1d24e8c256290196161efa
parent7b00bf7ddbdf3e763f3644ad8527ccba05504323
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>
(cherry picked from commit 5f9b8321ae6b2f5adc9e0c21dcd9f780b59c47d5)

Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
circ/del_message.pl