Fix: Remove warning

This commit is contained in:
Laurent Destailleur 2010-07-12 17:54:19 +00:00
parent cfb388f718
commit 92cb84df3b

View File

@ -916,8 +916,8 @@ class DolibarrModules
else dol_syslog("DolibarrModules::insert_permissions record already exists", LOG_INFO); else dol_syslog("DolibarrModules::insert_permissions record already exists", LOG_INFO);
} }
// If we are an admin user, we take permission of new module // If we are into a logged session and we are an admin user, we take permission of new activated module
if ($user->admin) if (! empty($user->admin))
{ {
$user->addrights($r_id); $user->addrights($r_id);
// We reload permissions // We reload permissions