|
@@ -93,14 +93,14 @@ foreach($object->fields as $key => $val)
|
|
|
|
|
|
if (empty($action) && empty($id) && empty($ref)) $action='view';
|
|
|
|
|
|
-// Security check - Protection if external user
|
|
|
-//if ($user->societe_id > 0) access_forbidden();
|
|
|
-//if ($user->societe_id > 0) $socid = $user->societe_id;
|
|
|
-//$result = restrictedArea($user, 'mymodule', $id);
|
|
|
-
|
|
|
// Load object
|
|
|
include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
|
|
|
|
|
|
+// Security check - Protection if external user
|
|
|
+//if ($user->societe_id > 0) access_forbidden();
|
|
|
+//if ($user->societe_id > 0) $socid = $user->societe_id;
|
|
|
+//$isdraft = (($object->statut == MyObject::STATUS_DRAFT) ? 1 : 0);
|
|
|
+//$result = restrictedArea($user, 'mymodule', $id, '', '', 'fk_soc', 'rowid', null, $isdraft);
|
|
|
|
|
|
|
|
|
/*
|