Set profile for global admin
This commit is contained in:
parent
4f5d29e36f
commit
266ba1c617
1 changed files with 2 additions and 2 deletions
|
|
@ -67,9 +67,9 @@ if ( ! isset($_REQUEST['action']))
|
|||
use_name,
|
||||
use_login,
|
||||
use_admin
|
||||
from ac_users natural join jnt_use_dos
|
||||
from ac_users left join jnt_use_dos using (use_id)
|
||||
where use_login != 'phpcompta' and use_active=1
|
||||
and dos_id=$1 " . $ord_sql, array($gDossier));
|
||||
and (dos_id=$1 or (dos_id is null and use_admin=1))" . $ord_sql, array($gDossier));
|
||||
|
||||
$MaxUser = Database::num_row($user_sql);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue