Merge pull request #10501 from hregis/8.0_mc

FIX [URGENT] broken feature, "$usercancreate" is for Dolibarr 9
This commit is contained in:
Laurent Destailleur 2019-02-08 09:31:26 +01:00 committed by GitHub
commit 24955088de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')
{