MT#57606 subscriberadmin can manage other subscribers' registrations

subscriberadmin is now be able to get, edit and delete registrations
of the other subscribers belonging to the same customer.
This is necessary to extend the CSC features and give the PBX
administrator more flexibility in device configuration.

Change-Id: If83c1adb9af6590111c14800d83fb7d1eafaa9d3
mr11.4
Marco Capetta 2 years ago
parent 28340ce871
commit e88d03f9eb

@ -199,7 +199,7 @@ sub item_by_id {
my $item_rs = $self->item_rs($c,{ id => $id, });
my $item = $item_rs->find($id);
if ($c->user->roles eq "subscriber" || $c->user->roles eq "subscriberadmin") {
if ($c->user->roles eq "subscriber") {
my $sub = $self->subscriber_from_item($c, $item);
return unless($sub->provisioning_voip_subscriber->id == $c->user->id);
}

Loading…
Cancel
Save