[Koha-bugs] [Bug 28948] Add a /public counterpart for the libraries REST endpoints

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 16 10:58:26 CEST 2021


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

--- Comment #22 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
I elaborated on the changes of Martin, but note the following:

-    # Remove forbidden attributes if required
-    if (    $params->{public}
-        and $self->can('api_privileged_attrs') )
-    {
-        foreach my $privileged_attr ( @{ $self->api_privileged_attrs } ) {
-            delete $json_object->{$privileged_attr};
-        }
-    }

Initially we only filtered the public side removing the api privileged keys.
What we now do, is filter both public and staff !
Which is a serious difference obviously.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list