diff --git a/include/compta_fin.inc.php b/include/compta_fin.inc.php index 8ac5018c9..bc314734c 100644 --- a/include/compta_fin.inc.php +++ b/include/compta_fin.inc.php @@ -154,8 +154,6 @@ if ( $def == 1 ) { // Show the listing //-------------------------------------------------------------------------------- if ( $def == 2) { - $Ledger->id=$_REQUEST['p_jrn']; - $jrn_priv=$User->check_action($Ledger->id); // Check privilege if ( isset($_REQUEST['p_jrn']) && $jrn_priv=='X') { @@ -170,6 +168,8 @@ if ( $def == 2) { $def_ledger=$Ledger->get_first('fin'); $Ledger->id=$def_ledger['jrn_def_id']; } + $jrn_priv=$User->check_action($Ledger->id); + $Ledger->show_ledger(); echo ''; exit();