]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 3 Feb 2022 07:05:29 +0000 (21:05 -1000)
commitdd4800f08d688de940f61d50085ff178992f0628
tree7eda516782d3c68e5770f12801cccfe01a615b79
parent09e02476773c181fcd4009f59c19c7ac1f46d775
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: Fridolin Somers <fridolin.somers@biblibre.com>
circ/del_message.pl