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

            Bug ID: 41269
           Summary: Patrons subpermissions should be fetched with
                    borrowernumber instead of userid
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Authentication
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

In Koha-Suomi libraries we use cardnumbers as userids. This is done with a
database trigger which sets cardnumber as userid when user is saved to
database. Mostly this works well, but occasionally we have faced problems with
patrons seemingly having no subpermissions.  

Patrons subpermissions are fetched from database with method
get_user_subpermissions based on their userid. So even if they are saved in
database they are not displayed in Koha's UI if userid is missing. While this
isn't a major problem it can be confusing for staff members if they have
accidentally created a patron without cardnumber/userid and then try to save
permissions for them which seemingly are not saved. Also full permissions for
patrons are still displayed normally so for consistency it would be logical to
use borrowernumber to fetch subpermissions instead of userid.    

Method get_user_subpermissions is used in two places, member-flags.pl to fetch
subpermissions and about.pl to check that SCO patron doesn't have extra
permissions. As far as I can see changing it to use patrons borrowernumber
shouldn't have any dramatic side effects.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
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