[Koha-bugs] [Bug 17004] REST API: add route to authenticate patron ( Single Sign On - SSO)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Aug 22 23:59:26 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17004
Benjamin Rokseth <benjamin.rokseth at kul.oslo.kommune.no> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |benjamin.rokseth at kul.oslo.k
| |ommune.no
--- Comment #12 from Benjamin Rokseth <benjamin.rokseth at kul.oslo.kommune.no> ---
wow, amazing work! very much like the code we use in production, but better!
AND with test coverage ;)
Would it be possible to also supply patron permissions in the response? I found
the easiest way was to just iterate against haspermissions thus:
+ my $permissions = haspermission($userid); # defaults to all permissions
+ # delete all empty permissions
+ while ( my ($key, $val) = each %{$permissions} ) {
+ delete $permissions->{$key} unless $val;
+ }
then you could just return $permission as a hash object
--
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