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