Fix: compatibility with viewimage and possibility to just view a document (not download)

This commit is contained in:
Regis Houssin 2011-04-05 09:50:10 +00:00
parent 1faab4920d
commit 8b568d29f7
3 changed files with 13 additions and 4 deletions

View File

@ -98,10 +98,17 @@ class modECM extends DolibarrModules
$this->rights[$r][1] = 'Consulter les documents';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'read';
$r++;
$this->rights[$r][0] = 2502;
$this->rights[$r][1] = 'Telecharger les documents';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'download';
$r++;
$this->rights[$r][0] = 2502;
$this->rights[$r][0] = 2503;
$this->rights[$r][1] = 'Soumettre ou supprimer des documents';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 1;

View File

@ -614,7 +614,8 @@ Permission2411=Read actions (events or tasks) of others
Permission2412=Create/modify actions (events or tasks) of others
Permission2413=Delete actions (events or tasks) of others
Permission2501=Read documents
Permission2502=Submit or delete documents
Permission2502=Download documents
Permission2503=Submit or delete documents
Permission2515=Setup documents directories
DictionnaryCompanyType=Company types
DictionnaryCompanyJuridicalType=Juridical kinds of company

View File

@ -619,8 +619,9 @@ Permission2403= Supprimer les actions (événements ou tâches) liées à son co
Permission2411= Lire les actions (événements ou tâches) des autres
Permission2412= Créer/modifier les actions (événements ou tâches) pour les autres
Permission2413= Supprimer les actions (événements ou tâches) pour les autres
Permission2501= Consulter les documents
Permission2502= Soumettre ou supprimer des documents
Permission2501= Lire les documents
Permission2502= Récupérer les documents
Permission2503= Soumettre ou supprimer des documents
Permission2515= Administrer les rubriques de documents
Permission8555= Utilisation du module
Permission8556= Définir les sites ecommerce