Koha-clms/installer/data/mysql/mandatory
Nick Clemens 3107cdc368
Bug 42406: Split delete_reports into delete_own_reports and delete_all_reports
This patch splits delete_reports into delete_own_reports and delete_all_reports

While delete_all_reports supercedes delete_own_reports it seems to make more sense than
delete_own_reports and delete_others_reports.

With delete_all_reports we can have a user who can delete all, without specific permission to delete their own
The other way we would have delete others, and you could not delete your own, which seems more odd

To test:
 1 - Have 2 users - 1 with delete_reports, 1 without
 2 - Apply patches, update database
 3 - Confirm user with permission now has 'delete_all_reports' and other user still has no reports deletion permission
 4 - Give the second user 'delete_own_reports' permission
 5 - Create 4 reports as each user
 6 - Confirm view/edit pages show the delete button for each user, and confirm they both work
 7 - You shoudl have 2 reports left for each user
 8 - Confirm each user can delete their own report from the saved SQL list:
     http://localhost:8081/cgi-bin/koha/reports/guided_reports.pl?op=list
 9 - There should be 1 report from each
10 - Give the second user 'delete_all_reports' permission in one tab and reload the saved reports in another tab
11 - Select both reports in the second tab
12 - Remove 'delete_all_reports' from the second user, leaving 'delete_own_reports' in the first tab
13 - Click 'Delete selected' in the reports tab
14 - Confirm you get 'You do not have permission to continue'
15 - Hit back, deselect other users report, confirm you can delete your own with 'Delete selected'
16 - Sign off

Signed-off-by: Judy Poyer <jpoyer@aacpl.net>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-05-01 11:04:29 -06:00
..
audio_alerts.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
auth_val_cat.sql Bug 38207: Add VENDOR_PAYMENT_METHOD for new installs 2026-01-26 14:36:43 -07:00
keyboard_shortcuts.sql Bug 40633: Add new keyboard shortcut for the fixed-length field helper 2026-04-23 16:03:53 -06:00
message_transport_types.sql Bug 25334: Add generic 'phone' message transport type 2020-11-05 15:24:20 +01:00
record_sources.sql Bug 42318: Populate record_sources with system defined values on install 2026-04-15 09:14:45 -06:00
sample_notices_message_attributes.sql Bug 30300: Add a patron expiry messaging preference 2025-02-03 14:26:53 +01:00
sample_notices_message_transports.sql Bug 30300: Add a patron expiry messaging preference 2025-02-03 14:26:53 +01:00
subtag_registry.sql Bug 39147: Add more missing languages 2025-04-23 09:35:18 +02:00
sysprefs.sql Bug 23909: Add syspref values and atomicupdate 2026-05-01 11:04:11 -06:00
userflags.sql Bug 39142: (RM follow-up) Add missing comma to userflags.sql 2026-01-09 08:18:50 -07:00
userpermissions.sql Bug 42406: Split delete_reports into delete_own_reports and delete_all_reports 2026-05-01 11:04:29 -06:00