mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
Fix phpunit
This commit is contained in:
@@ -750,7 +750,9 @@ class User extends CommonObject
|
||||
|
||||
// In $conf->modules, we have 'accounting', 'product', 'facture', ...
|
||||
// In $user->rights, we have 'accounting', 'produit', 'facture', ...
|
||||
//if ($a) { var_dump($module); var_dump($this->rights->$rightsPath); var_dump($conf->modules); }
|
||||
//var_dump($module);
|
||||
//var_dump($this->rights->$rightsPath);
|
||||
//var_dump($conf->modules);
|
||||
if (!in_array($module, $conf->modules)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user