Update workstation_card.php
This commit is contained in:
parent
434f0a786b
commit
0a4778bb2d
@ -77,11 +77,13 @@ if (empty($action) && empty($id) && empty($ref)) {
|
|||||||
// Load object
|
// Load object
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
|
include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
|
||||||
|
|
||||||
|
// Permissions
|
||||||
$permissiontoread = $user->rights->workstation->workstation->read;
|
$permissiontoread = $user->rights->workstation->workstation->read;
|
||||||
$permissiontoadd = $user->rights->workstation->workstation->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
|
$permissiontoadd = $user->rights->workstation->workstation->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
|
||||||
$permissiontodelete = $user->rights->workstation->workstation->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
|
$permissiontodelete = $user->rights->workstation->workstation->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
|
||||||
$permissionnote = $user->rights->workstation->workstation->write; // Used by the include of actions_setnotes.inc.php
|
$permissionnote = $user->rights->workstation->workstation->write; // Used by the include of actions_setnotes.inc.php
|
||||||
$permissiondellink = $user->rights->workstation->workstation->write; // Used by the include of actions_dellink.inc.php
|
$permissiondellink = $user->rights->workstation->workstation->write; // Used by the include of actions_dellink.inc.php
|
||||||
|
|
||||||
$upload_dir = $conf->workstation->multidir_output[isset($object->entity) ? $object->entity : 1];
|
$upload_dir = $conf->workstation->multidir_output[isset($object->entity) ? $object->entity : 1];
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user