https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44039
Bug ID: 44039
Summary: Merging patrons can delete the patron account of the
logged in user
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Patrons
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
The patron merge (members/merge-patrons.pl, op cud-merge) does not check
whether the logged in user is among the patrons to be merged into the one being
kept.
If they are, the merge goes ahead and deletes the account of the logged in
user. Their session is then left without a patron, and the next request fails
with an error 500:
Can't call method "libraries_where_can_see_patrons" on an undefined value at
Koha/Libraries.pm
To reproduce:
1. Create a staff patron with the permission to merge patrons (or a
superlibrarian), for example "mergetest", and another patron, for example
"mergekeep".
2. Log in to the staff interface as mergetest.
3. Patrons: search for both patrons, select them and click "Merge selected
patrons".
4. Choose mergekeep as the patron to keep and click "Merge patrons".
5. The merge is done and mergetest is deleted. Click any link: there is an
error 500.
Deleting your own account is already prevented in members/deletemem.pl
(CANT_DELETE_YOURSELF). The merge should do the same.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/