Add suffix "_advance" to isolate permission that are "advanced features". Goal will be to no use them for standard use.
This commit is contained in:
parent
c45c7e93bf
commit
70e47a9342
@ -98,7 +98,7 @@ class modUser extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Consulter les permissions des autres utilisateurs';
|
||||
$this->rights[$r][2] = 'r';
|
||||
$this->rights[$r][3] = 0;
|
||||
$this->rights[$r][4] = 'user';
|
||||
$this->rights[$r][4] = 'user_advance';
|
||||
$this->rights[$r][5] = 'readperms';
|
||||
|
||||
$r++;
|
||||
@ -131,7 +131,7 @@ class modUser extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Consulter ses propres permissions';
|
||||
$this->rights[$r][2] = 'r';
|
||||
$this->rights[$r][3] = 1;
|
||||
$this->rights[$r][4] = 'self';
|
||||
$this->rights[$r][4] = 'self_advance';
|
||||
$this->rights[$r][5] = 'readperms';
|
||||
*/
|
||||
|
||||
@ -157,7 +157,7 @@ class modUser extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Modifier ses propres permissions';
|
||||
$this->rights[$r][2] = 'w';
|
||||
$this->rights[$r][3] = 1;
|
||||
$this->rights[$r][4] = 'self';
|
||||
$this->rights[$r][4] = 'self_advance';
|
||||
$this->rights[$r][5] = 'writeperms';
|
||||
*/
|
||||
|
||||
@ -166,7 +166,7 @@ class modUser extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Consulter les groupes';
|
||||
$this->rights[$r][2] = 'r';
|
||||
$this->rights[$r][3] = 0;
|
||||
$this->rights[$r][4] = 'group';
|
||||
$this->rights[$r][4] = 'group_advance';
|
||||
$this->rights[$r][5] = 'read';
|
||||
|
||||
$r++;
|
||||
@ -174,7 +174,7 @@ class modUser extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Consulter les permissions des groupes';
|
||||
$this->rights[$r][2] = 'r';
|
||||
$this->rights[$r][3] = 0;
|
||||
$this->rights[$r][4] = 'group';
|
||||
$this->rights[$r][4] = 'group_advance';
|
||||
$this->rights[$r][5] = 'readperms';
|
||||
|
||||
$r++;
|
||||
@ -182,7 +182,7 @@ class modUser extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Creer/modifier les groupes et leurs permissions';
|
||||
$this->rights[$r][2] = 'w';
|
||||
$this->rights[$r][3] = 0;
|
||||
$this->rights[$r][4] = 'group';
|
||||
$this->rights[$r][4] = 'group_advance';
|
||||
$this->rights[$r][5] = 'write';
|
||||
|
||||
$r++;
|
||||
@ -190,7 +190,7 @@ class modUser extends DolibarrModules
|
||||
$this->rights[$r][1] = 'Supprimer ou desactiver les groupes';
|
||||
$this->rights[$r][2] = 'd';
|
||||
$this->rights[$r][3] = 0;
|
||||
$this->rights[$r][4] = 'group';
|
||||
$this->rights[$r][4] = 'group_advance';
|
||||
$this->rights[$r][5] = 'delete';
|
||||
|
||||
$r++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user