diff --git a/lib/NGCP/Panel/Controller/API/Root.pm b/lib/NGCP/Panel/Controller/API/Root.pm index 62d6d41742..c75990e8ea 100644 --- a/lib/NGCP/Panel/Controller/API/Root.pm +++ b/lib/NGCP/Panel/Controller/API/Root.pm @@ -60,7 +60,7 @@ sub GET : Allow { if(ref $role eq "ARRAY") { next unless grep @{ $role }, $c->user->roles; } else { - next unless $role eq $c->user->roles; + next unless $role && $role eq $c->user->roles; } my $query_params = [];