diff --git a/lib/NGCP/Panel/Role/API/BannedUsers.pm b/lib/NGCP/Panel/Role/API/BannedUsers.pm index 377f2fadd7..05ef2f7535 100644 --- a/lib/NGCP/Panel/Role/API/BannedUsers.pm +++ b/lib/NGCP/Panel/Role/API/BannedUsers.pm @@ -24,9 +24,7 @@ sub get_item_id{ sub valid_id { my ($self, $c, $id) = @_; - return 1 if $id=~/^[^@]+@[^@]+$/; - $self->error($c, HTTP_BAD_REQUEST, "Invalid id in request URI. Should be an ip address."); - return; + return 1; } sub item_by_id{