https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17004 Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |benjamin.rokseth@kul.oslo.k | |ommune.no --- Comment #12 from Benjamin Rokseth <benjamin.rokseth@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.