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

Emmi Takkinen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
           Assignee|[email protected] |[email protected]
                   |ity.org                     |

--- Comment #1 from Emmi Takkinen <[email protected]> ---
Created attachment 190103
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=190103&action=edit
Bug 41269: Use borrowernumber to fetch patrons subpermissions

Koha currently fetches patrons subpermissions with userid in
method get_user_subpermissions. If for some reason patron
doesn't have userid their subpermissions aren't displayed
on Koha UI. Althougt this shouldn't really happen (unless there
are some local use cases where userid can be empty), this method
is only used to either display patrons subpermissions on page
Set permissions or to check if SCO user only has SCO permissions.
In both of these cases we can use patrons borrowernumber
instead of userid since they check existing patrons permissions,
not the ones for patron who is about to log into Koha.

To test:
1. Apply this patch.
2. Enable sysprefs WebBasedSelfCheck and AutoSelfCheckAllowed
and add some patrons userid to AutoSelfCheckID.
3. Make sure patron whose userid you used doesn't have
permissions to use SCO and has other subpermissions instead.
4. Navigate to page About Koha>System infromation.
=> Confirm that warnings starting with "The patron used for
the self-checkout..." are displayed.
5. Check patrons permissions.
=> Confirm that patrons subpermissions are displayed normally.

Sponsored-by: Koha-Suomi Oy

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