Fix phpunit
This commit is contained in:
parent
90d58bde27
commit
e19e65d362
@ -750,7 +750,9 @@ class User extends CommonObject
|
|||||||
|
|
||||||
// In $conf->modules, we have 'accounting', 'product', 'facture', ...
|
// In $conf->modules, we have 'accounting', 'product', 'facture', ...
|
||||||
// In $user->rights, we have 'accounting', 'produit', '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)) {
|
if (!in_array($module, $conf->modules)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user