|
|
@ -222,6 +222,17 @@ sub get_contracts_rs_sippbx{
|
|
|
|
$reseller_condition = $c->user->contract->contact->reseller_id;
|
|
|
|
$reseller_condition = $c->user->contract->contact->reseller_id;
|
|
|
|
} elsif($c->user->roles eq "admin") {
|
|
|
|
} elsif($c->user->roles eq "admin") {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$customers = $customers->search({
|
|
|
|
|
|
|
|
'contact.reseller_id' => $reseller_condition ,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my $reseller_condition;
|
|
|
|
|
|
|
|
if($c->user->roles eq "reseller") {
|
|
|
|
|
|
|
|
$reseller_condition = $c->user->reseller_id;
|
|
|
|
|
|
|
|
} elsif($c->user->roles eq "subscriberadmin") {
|
|
|
|
|
|
|
|
$reseller_condition = $c->user->contract->contact->reseller_id;
|
|
|
|
|
|
|
|
} elsif($c->user->roles eq "admin") {
|
|
|
|
|
|
|
|
}
|
|
|
|
if ($reseller_condition){
|
|
|
|
if ($reseller_condition){
|
|
|
|
$customers = $customers->search({
|
|
|
|
$customers = $customers->search({
|
|
|
|
'contact.reseller_id' => $reseller_condition ,
|
|
|
|
'contact.reseller_id' => $reseller_condition ,
|
|
|
|