Koha-clms/Koha/Exceptions
Nick Clemens 7c45fc8bdf
Bug 33229: Clear patron reading history when privacy is set to never
This patch adds a check to patron store routine. When privacy is changed
to 'Never' we should immediately clear their history

To test:
1 - Set system preferences:
   AnonymousPatron - to a valid borrowernumber
   OPACPrivacy - Allow
2 - Checkout some items to a patron with priacy set to default, return them
3 - Log in to opac as patron
4 - Confirm you can see your history
5 - Change history to Never
6 - Confirm history still viewable
7 - Apply patch, restart all
8 - Set privacy to Default
9 - Confirm you can still see history, not deleted when not set as Never
10 - Set privacy to 'Never'
11 - Confirm history is anonymized

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-04-14 15:39:41 -03:00
..
Acquisition Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Checkouts Bug 30275: (follow-up) Drop renewer_id constraint 2022-07-05 09:46:18 -03:00
Item Bug 33021: Show an alert when adding a reserved item to an item bundle 2023-03-27 12:50:05 +02:00
Patron Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Account.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
ArticleRequest.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Auth.pm Bug 31378: Add Auth mojo plugin 2022-11-08 14:30:33 -03:00
Authentication.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Authorization.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
BackgroundJob.pm Bug 30360: Add helper methods to Koha::BackgroundJobs 2022-05-05 16:11:36 +01:00
Checkin.pm Bug 32121: Show an alert when adding a checked out item to an item bundle 2023-03-27 12:50:02 +02:00
Checkout.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
ClubHold.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Config.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
CurbsidePickup.pm Bug 30650: Prevent pickup to be created on holiday 2022-07-29 15:00:51 -03:00
Elasticsearch.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Hold.pm Bug 31086: Throw an exception when a hold is stored with no branchcode 2022-07-22 14:19:17 -03:00
Ill.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Library.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
MarcOverlayRule.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Metadata.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Object.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Password.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Patron.pm Bug 33229: Clear patron reading history when privacy is set to never 2023-04-14 15:39:41 -03:00
Plugin.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
SysPref.pm Bug 30007: Add Koha::Exceptions::SysPref 2022-03-01 22:47:47 -10:00
Token.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
TransferLimit.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Virtualshelf.pm Bug 30057: Move virtualshelf-related exceptions to a separate library 2022-06-06 14:30:37 -03:00
XSLT.pm Bug 12758: (QA follow-up) Enhance POD 2022-11-09 09:58:56 -03:00