diff --git a/lib/NGCP/Panel/Role/API/SoundHandles.pm b/lib/NGCP/Panel/Role/API/SoundHandles.pm index fd3a21701f..854a0fd668 100644 --- a/lib/NGCP/Panel/Role/API/SoundHandles.pm +++ b/lib/NGCP/Panel/Role/API/SoundHandles.pm @@ -22,6 +22,13 @@ sub _item_rs { as => [qw/id handle group/], join => 'group', }); + if ($c->user->roles eq 'subscriberadmin' || + $c->user->roles eq 'subscriber') { + + $item_rs = $item_rs->search({ + expose_to_customer => 1, + }); + } return $item_rs; }