Fix: add advanced perms option

This commit is contained in:
Regis Houssin 2010-11-08 17:21:52 +00:00
parent 6ed04941bb
commit 005a824582
3 changed files with 31 additions and 21 deletions

View File

@ -103,14 +103,22 @@ class modUser extends DolibarrModules
$r++;
$this->rights[$r][0] = 253;
$this->rights[$r][1] = 'Creer/modifier les autres utilisateurs et leurs permissions';
$this->rights[$r][1] = 'Creer/modifier utilisateurs internes et externes';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'user';
$this->rights[$r][5] = 'creer';
$r++;
$this->rights[$r][0] = 254;
$this->rights[$r][1] = 'Creer/modifier utilisateurs externes seulement';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'user_advance';
$this->rights[$r][5] = 'write';
$r++;
$this->rights[$r][0] = 255;
$this->rights[$r][1] = 'Modifier le mot de passe des autres utilisateurs';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;
@ -118,7 +126,7 @@ class modUser extends DolibarrModules
$this->rights[$r][5] = 'password';
$r++;
$this->rights[$r][0] = 255;
$this->rights[$r][0] = 256;
$this->rights[$r][1] = 'Supprimer ou desactiver les autres utilisateurs';
$this->rights[$r][2] = 'd';
$this->rights[$r][3] = 0;
@ -126,7 +134,7 @@ class modUser extends DolibarrModules
$this->rights[$r][5] = 'supprimer';
$r++;
$this->rights[$r][0] = 256;
$this->rights[$r][0] = 341;
$this->rights[$r][1] = 'Consulter ses propres permissions';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1;
@ -134,7 +142,7 @@ class modUser extends DolibarrModules
$this->rights[$r][5] = 'readperms';
$r++;
$this->rights[$r][0] = 257;
$this->rights[$r][0] = 342;
$this->rights[$r][1] = 'Creer/modifier ses propres infos utilisateur';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 1;
@ -142,7 +150,7 @@ class modUser extends DolibarrModules
$this->rights[$r][5] = 'creer';
$r++;
$this->rights[$r][0] = 258;
$this->rights[$r][0] = 343;
$this->rights[$r][1] = 'Modifier son propre mot de passe';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 1;
@ -150,7 +158,7 @@ class modUser extends DolibarrModules
$this->rights[$r][5] = 'password';
$r++;
$this->rights[$r][0] = 259;
$this->rights[$r][0] = 344;
$this->rights[$r][1] = 'Modifier ses propres permissions';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 1;

View File

@ -516,13 +516,10 @@ Permission251=Read other users and groups
PermissionAdvanced251=Read other users
Permission252=Read permissions of other users
Permission253=Create/modify other users, groups and permisssions
PermissionAdvanced253=Create/modify other users and permissions
Permission254=Modify other users password
Permission255=Delete or disable other users
Permission256=Read its own permissions
Permission257=Create/modify his own user information
Permission258=Modify his own password
Permission259=Modify its own permissions
PermissionAdvanced253=Create/modify internal/external users and permissions
Permission254=Create/modify external users only
Permission255=Modify other users password
Permission256=Delete or disable other users
Permission262=Extend access to all third parties (not only those linked to user). Not effective for external users (always limited to themselves).
Permission271=Read CA
Permission272=Read invoices
@ -542,6 +539,10 @@ Permission312=Assign service to contract
Permission331=Read bookmarks
Permission332=Create/modify bookmarks
Permission333=Delete bookmarks
Permission341=Read its own permissions
Permission342=Create/modify his own user information
Permission343=Modify his own password
Permission344=Modify its own permissions
Permission351=Read groups
Permission352=Read groups permissions
Permission353=Create/modify groups

View File

@ -518,13 +518,10 @@ Permission251= Consulter les autres utilisateurs, les groupes et leurs permissio
PermissionAdvanced251= Consulter les autres utilisateurs
Permission252= Consulter les permissions des autres utilisateurs
Permission253= Créer/modifier les autres utilisateurs, les groupes et leurs permissions
PermissionAdvanced253= Créer/modifier les autres utilisateurs et leurs permissions
Permission254= Modifier le mot de passe des autres utilisateurs
Permission255= Supprimer ou désactiver les autres utilisateurs
Permission256= Consulter ses propres permissions
Permission257= Créer/modifier ses propres infos utilisateur
Permission258= Modifier son propre mot de passe
Permission259= Modifier ses propres permissions
PermissionAdvanced253= Créer/modifier les utilisateurs internes/externes et leurs permissions
Permission254= Créer/modifier les utilisateurs externes seulement
Permission255= Modifier le mot de passe des autres utilisateurs
Permission256= Supprimer ou désactiver les autres utilisateurs
Permission262= Étendre l'accès à tous les tiers (Pas seulement ceux liés à l'utilisateur). Non effectif pour utilisateurs externes (toujours limité à eux-même).
Permission271= Consulter le CA
Permission272= Consulter les factures
@ -544,6 +541,10 @@ Permission312= Affecter des services à un contrat
Permission331= Lire les bookmarks
Permission332= Créer/modifier les bookmarks
Permission333= Supprimer les bookmarks
Permission341= Consulter ses propres permissions
Permission342= Créer/modifier ses propres infos utilisateur
Permission343= Modifier son propre mot de passe
Permission344= Modifier ses propres permissions
Permission351= Consulter les groupes
Permission352= Consulter les permissions des groupes
Permission353= Créer/modifier les groupes et leurs permissions