mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
FIX [URGENT] broken feature, "$usercancreate" is for Dolibarr 9
This commit is contained in:
@@ -4551,7 +4551,7 @@ else if ($id > 0 || ! empty($ref))
|
||||
$ret = $object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
|
||||
|
||||
// Form to add new line
|
||||
if ($object->statut == 0 && $usercancreate && $action != 'valid' && $action != 'editline')
|
||||
if ($object->statut == 0 && $user->rights->facture->creer && $action != 'valid' && $action != 'editline')
|
||||
{
|
||||
if ($action != 'editline' && $action != 'selectlines')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user