Fix problem with local admin

This commit is contained in:
Dany De Bontridder 2009-02-25 15:40:01 +00:00
parent 45666d3c17
commit 1bcb85cbef

View file

@ -183,7 +183,7 @@ require_once("class_acc_ledger.php");
//-----------------------------------------------------
include_once("postgres.php");
if ( $User->Admin() ==0) {
if ( $User->Admin() == 0 && $User->is_local_admin()==0) {
$ret=make_array($cn,"select jrn_def_id,jrn_def_name
from jrn_def join jrn_type on jrn_def_type=jrn_type_id
join user_sec_jrn on uj_jrn_id=jrn_def_id