https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42406 --- Comment #4 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 197977 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197977&action=edit 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 -- You are receiving this mail because: You are watching all bug changes.