View | Details | Raw Unified | Return to bug 37018
Collapse All | Expand All

(-)a/Koha/REST/Plugin/Query.pm (-2 / +2 lines)
Lines 511-517 sub _parse_dbic_query { Link Here
511
511
512
sub _validate_operator {
512
sub _validate_operator {
513
    my ($operator) = @_;
513
    my ($operator) = @_;
514
    my %allowed_operators = map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or);
514
    my %allowed_operators =
515
        map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or -like -not -and -regexp);
515
    Koha::Exceptions::REST::Query::InvalidOperator->throw( operator => $operator )
516
    Koha::Exceptions::REST::Query::InvalidOperator->throw( operator => $operator )
516
        unless exists $allowed_operators{$operator};
517
        unless exists $allowed_operators{$operator};
517
    return;
518
    return;
518
- 

Return to bug 37018