diff --git a/lib/NGCP/Panel/Role/API.pm b/lib/NGCP/Panel/Role/API.pm index 6b5b39a53f..93202d604f 100644 --- a/lib/NGCP/Panel/Role/API.pm +++ b/lib/NGCP/Panel/Role/API.pm @@ -1579,8 +1579,7 @@ sub check_allowed_ngcp_types { my $allowed_ngcp_types = $self->get_config('allowed_ngcp_types') // []; if (@{$allowed_ngcp_types} && - !grep { /^\Q$c->config->{general}{ngcp_type}\E$/ } - @{$allowed_ngcp_types}) { + ! any { $_ eq $c->config->{general}{ngcp_type} } @{$allowed_ngcp_types}) { return; } return 1;