MT#32999 /api/cfmappings subscriberadmin scope of view change

* subscriberadmin can now see all other customer's subscribers
  call forwards as well as per subscriber_id

Change-Id: I4bdaf3390667fc7208fa6dbde9292b8ba911667f
mr11.2
Kirill Solomko 3 years ago
parent 33096f18d3
commit 64b71cdcd1

@ -136,7 +136,11 @@ sub _item_rs {
}, {
join => { 'contract' => 'contact' },
});
} elsif($c->user->roles eq "subscriber" || $c->user->roles eq "subscriberadmin") {
} elsif($c->user->roles eq "subscriberadmin") {
$item_rs = $item_rs->search({
'me.contract_id' => $c->user->account_id,
});
} elsif($c->user->roles eq "subscriber") {
$item_rs = $item_rs->search({
'me.uuid' => $c->user->uuid,
});

Loading…
Cancel
Save