Lines 254-260
sub authenticate_api_request {
Link Here
|
254 |
if ( !$authorization and |
254 |
if ( !$authorization and |
255 |
( $params->{is_public} and |
255 |
( $params->{is_public} and |
256 |
( C4::Context->preference('RESTPublicAnonymousRequests') or |
256 |
( C4::Context->preference('RESTPublicAnonymousRequests') or |
257 |
$user) ) or $params->{is_plugin} ) { |
257 |
$user) or $params->{is_plugin} ) ) { |
258 |
# We do not need any authorization |
258 |
# We do not need any authorization |
259 |
# Check the parameters |
259 |
# Check the parameters |
260 |
validate_query_parameters( $c, $spec ); |
260 |
validate_query_parameters( $c, $spec ); |
261 |
- |
|
|