Fix: avoid error with external modules
This commit is contained in:
parent
3d4621327c
commit
a4f0b7f0df
@ -79,6 +79,7 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
|
||||
$newelement = 'fournisseur';
|
||||
$subelement = 'facture';
|
||||
}
|
||||
else $newelement = $element;
|
||||
|
||||
if (! empty($user->rights->$newelement->creer) || ! empty($user->rights->$newelement->write)
|
||||
|| (isset($subelement) && (! empty($user->rights->$newelement->$subelement->creer) || ! empty($user->rights->$newelement->$subelement->write)))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user