Bug in security : FIN Ledger confusion between check_action and get_ledger_access
This commit is contained in:
parent
fadc60e940
commit
2ca1abcf6b
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ if ( $def == 1 ) {
|
|||
$def_ledger=$Ledger->get_first('fin');
|
||||
$Ledger->id=$def_ledger['jrn_def_id'];
|
||||
}
|
||||
$jrn_priv=$User->check_action($Ledger->id);
|
||||
$jrn_priv=$User->get_ledger_access($Ledger->id);
|
||||
// Check privilege
|
||||
if ( isset($_REQUEST['p_jrn']) && ( $jrn_priv == 'X')) {
|
||||
NoAccess();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue