From 70e47a9342c3a870288c3d9197951192fc5c6bff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 7 Nov 2010 19:27:51 +0000 Subject: [PATCH] Add suffix "_advance" to isolate permission that are "advanced features". Goal will be to no use them for standard use. --- htdocs/includes/modules/modUser.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/includes/modules/modUser.class.php b/htdocs/includes/modules/modUser.class.php index e787444f76d..66fb2b93ee2 100644 --- a/htdocs/includes/modules/modUser.class.php +++ b/htdocs/includes/modules/modUser.class.php @@ -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++;