diff --git a/htdocs/modulebuilder/template/myobject_document.php b/htdocs/modulebuilder/template/myobject_document.php index 6a891511801..5c36a559723 100644 --- a/htdocs/modulebuilder/template/myobject_document.php +++ b/htdocs/modulebuilder/template/myobject_document.php @@ -251,12 +251,7 @@ print ''; print dol_get_fiche_end(); $modulepart = 'mymodule'; -//$permissiontoadd = $user->hasRight('mymodule', 'myobject', 'write'); -$permissiontoadd = 1; -//$permtoedit = $user->hasRight('mymodule', 'myobject', 'write'); -$permtoedit = 1; $param = '&id='.$object->id; - //$relativepathwithnofile='myobject/' . dol_sanitizeFileName($object->id).'/'; $relativepathwithnofile = 'myobject/'.dol_sanitizeFileName($object->ref).'/';