Update card.php

This commit is contained in:
Laurent Destailleur 2021-10-13 01:55:24 +02:00 committed by GitHub
parent 4d48be415c
commit 365d5d4588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,7 @@ $permissiontoedit = $usercancreate; // Used by the include of actions_lineupdown
$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
// Project permission
$caneditproject = false;
if (!empty($conf->projet->enabled)) {
$caneditproject = empty($conf->global->SUPPLIER_ORDER_FORBID_EDIT_PROJECT) || ($object->statut == CommandeFournisseur::STATUS_DRAFT && preg_match('/^[\(]?PROV/i', $object->ref));
}