Failed with condition unification for reseller_id of contracts. Return to double search using to construct query.

ipeshinskaya/InvoiceTemplate5
Irka 11 years ago committed by Victor Seva
parent 1cdfca1cea
commit 75f16d14b5

@ -217,6 +217,7 @@ sub get_contracts_rs_sippbx{
my $reseller_condition;
if($c->user->roles eq "reseller") {
$reseller_condition = $c->user->reseller_id;
$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") {

Loading…
Cancel
Save