https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42826

            Bug ID: 42826
           Summary: Reports: Allow transfer/adoption of report ownership
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Reports
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
  Target Milestone: ---

Bug 42667 introduces the edit_all_reports permission, restricting
report editing to the report's creator unless the librarian holds
that permission. This surfaces a gap: there is currently no mechanism
to change the borrowernumber recorded as a report's owner.

Two common real-world scenarios are blocked without this:

1. Staff departure. A librarian leaves the organisation. Their reports
become ownerless (if the patron record is deleted) or remain locked to
a departed account. Other staff with create_reports but not
edit_all_reports cannot maintain them.

2. Adoption of ownerless/legacy reports. Reports created before
ownership tracking was tightened, or imported via Mana, may have no
owner. A librarian who wants to claim such a report and take ongoing
responsibility for it has no way to do so without involving a
superlibrarian.

Proposed behaviour:
- On the report edit form and/or via a dedicated action in the
  saved-reports list, a librarian holding edit_all_reports should be
  able to reassign the report's owner to any other staff patron, or
  clear the owner field.
- A bulk-transfer option for the staff-departure case: reassign all
  reports owned by patron X to patron Y. This could live in the patron
  deletion workflow or in the reports administration area.
- A librarian without edit_all_reports should be able to adopt an
  ownerless report (setting themselves as owner), since this is a
  tightening of access rather than a loosening.

Acceptance criteria:
- Single-report ownership transfer, restricted to edit_all_reports holders
- Ownerless-report adoption available to any create_reports holder
- Bulk transfer (move all reports from patron A to patron B),
  restricted to edit_all_reports holders

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to