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

--- Comment #21 from Olivia Reynolds <[email protected]> ---
Created attachment 209158
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209158&action=edit
Bug 42826: Process changing report author in permission checks

Now that changing report author is possible, check_edit_permission can't
assume that the current borrowernumber was also the previous
borrowernumber. It must use the old borrowernumber to decide whether the
current patron can edit the report. This patch also allows disowning as
an explicit extra case, when a report can go from being owned by a
patron to being owned by nobody - but not directly from one patron to
another.

Test plan:
1.  Apply patch.
2.  Prove t/db_dependent/Koha/Reports.t, and verify all of the tests
    pass.

Sponsored-by: Open Fifth

-- 
You are receiving this mail because:
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/

Reply via email to