Koha/koha-tmpl/intranet-tmpl/prog/en
Owen Leonard 2c60281ab4 Bug 29889: Incorrect library check in patron message deletion logic
This patch corrects the logic controlling whether a patron message on
the circulation or patron details page has a "Delete" link. An error in
the logic prevented messages from being removed by staff who should have
been authorized to do so.

To reproduce the bug, check that your AllowAllMessageDeletion preference
is disabled.

- In the staff client, check out to a patron whose home library doesn't
  match the library you're logged in at.
- Add a message to the patron's account.
- You should see no "Delete" link next to the newly-added message.
  - If you edit the patron so that their home library matches the
    library you're logged in at the delete link will appear.

To test, apply the patch and follow the steps above. The delete link
should aways appear if the message was left by someone logged in at the
same library.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-01-19 12:13:49 -10:00
..
data
includes Bug 29889: Incorrect library check in patron message deletion logic 2022-01-19 12:13:49 -10:00
modules Bug 29820: Set paging option using boolean instead of string 2022-01-18 21:15:05 -10:00
xslt Bug 29556: MARC21slim2MODS.xsl broken by duplicate template name "part" 2021-12-02 21:01:10 -10:00
columns.def Bug 28490: Revert "Bug 26995: Remove references to relationship column" 2021-06-14 17:35:19 +02:00