From 0ceeb0f4e67235d97f3684e003dce4cd10f0c7e5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 4 May 2008 16:59:17 +0000 Subject: [PATCH] Add translation of ECM module Can not delete a document of permission not owned. --- htdocs/ecm/docmine.php | 2 +- htdocs/includes/modules/modECM.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/ecm/docmine.php b/htdocs/ecm/docmine.php index f3937c7a881..b768348bfe4 100644 --- a/htdocs/ecm/docmine.php +++ b/htdocs/ecm/docmine.php @@ -352,7 +352,7 @@ if ($user->rights->ecm->create) if ($user->rights->ecm->read) { $param='&section='.$section; - $formfile->list_of_documents($filearray,'','ecm',$param,1,$relativepath); + $formfile->list_of_documents($filearray,'','ecm',$param,1,$relativepath,$user->rights->ecm->create); } // End of page diff --git a/htdocs/includes/modules/modECM.class.php b/htdocs/includes/modules/modECM.class.php index a75372025b6..bbba257c362 100644 --- a/htdocs/includes/modules/modECM.class.php +++ b/htdocs/includes/modules/modECM.class.php @@ -104,7 +104,7 @@ class modECM extends DolibarrModules $r++; $this->rights[$r][0] = 2501; - $this->rights[$r][1] = 'Soumettre des documents'; + $this->rights[$r][1] = 'Soumettre ou supprimer des documents'; $this->rights[$r][2] = 'w'; $this->rights[$r][3] = 1; $this->rights[$r][4] = 'create';