mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-08 01:53:03 +01:00
Add translation of ECM module
Can not delete a document of permission not owned.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user