[Koha-bugs] [Bug 31389] New: Calculate user permissions in separate function

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 18 02:32:43 CEST 2022


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

            Bug ID: 31389
           Summary: Calculate user permissions in separate function
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

C4::Auth::get_template_and_user() is an extremely long function. By decomposing
it into functions, it becomes easier to test and re-use those functions
elsewhere. 

The current calculation of "CAN_user_*" is also inefficient and contains some
unused code, so this would help to clean it up.

-- 
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