https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17004
Benjamin Rokseth <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |ommune.no --- Comment #12 from Benjamin Rokseth <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
