[Koha-bugs] [Bug 34589] Update on bug 20256 is not idempotent
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Sep 11 18:05:12 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34589
emily-rose.francoeur at inLibro.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #155271|0 |1
is obsolete| |
--- Comment #4 from emily-rose.francoeur at inLibro.com ---
Created attachment 155501
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155501&action=edit
Bug 34589: Only update users if permission is added
To test:
1 - Assign a user 'edit_items' permission
2 - Manually run the update
perl -e 'use C4::Installer; warn
Data::Dumper::Dumper(C4::Installer::run_db_rev("installer/data/mysql/db_revs/221200003.pl"));'
3 - Edit patron permissions
4 - Note they now have edit_any_item permission
5 - Remove that permission
6 - Run the update again
7 - Edit patron permissions
8 - They have edit_any_item again - remove it
9 - Apply patch
10 - Run the update
11 - Edit patron permissions
12 - No new permissions added!
13 - sudo koha-mysql kohadev
DELETE FROM permissions WHERE code = 'edit_any_item'
14 - Run the update again
15 - Edit patron permissions
16 - They do have edit_any_item
Signed-off-by: Émily-Rose Francoeur <emily-rose.francoeur at inLibro.com>
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list