bug fix in accounting load rows
This commit is contained in:
parent
34026cfcfb
commit
18b9f9841c
|
@ -689,10 +689,18 @@ class HesabdariController extends AbstractController
|
||||||
$roll = '';
|
$roll = '';
|
||||||
if ($params['type'] == 'person')
|
if ($params['type'] == 'person')
|
||||||
$roll = 'person';
|
$roll = 'person';
|
||||||
|
if ($params['type'] == 'person_receive' || $params['type'] == 'person_send')
|
||||||
|
$roll = 'person';
|
||||||
|
elseif ($params['type'] == 'sell_receive')
|
||||||
|
$roll = 'sell';
|
||||||
|
elseif ($params['type'] == 'buy_send')
|
||||||
|
$roll = 'buy';
|
||||||
|
elseif ($params['type'] == 'transfer')
|
||||||
|
$roll = 'bankTransfer';
|
||||||
elseif ($params['type'] == 'all')
|
elseif ($params['type'] == 'all')
|
||||||
$roll = 'accounting';
|
$roll = 'accounting';
|
||||||
else
|
else
|
||||||
$this->createNotFoundException();
|
$roll = $params['type'];
|
||||||
|
|
||||||
$acc = $access->hasRole($roll);
|
$acc = $access->hasRole($roll);
|
||||||
if (!$acc)
|
if (!$acc)
|
||||||
|
|
Loading…
Reference in a new issue