0013342: allow to configure default user/admin role names
[tine20] / tine20 / Tinebase / Config.php
index 57ec9ad..da10211 100644 (file)
@@ -70,6 +70,16 @@ class Tinebase_Config extends Tinebase_Config_Abstract
     const DEFAULT_LOCALE = 'defaultLocale';
 
     /**
+     * default user role
+     */
+    const DEFAULT_USER_ROLE_NAME = 'defaultUserRoleName';
+
+    /**
+     * default user role
+     */
+    const DEFAULT_ADMIN_ROLE_NAME = 'defaulAdminRoleName';
+
+    /**
      * INTERNET_PROXY
      *
      * @var string
@@ -1021,6 +1031,26 @@ class Tinebase_Config extends Tinebase_Config_Abstract
 
             ),
         ),
+        self::DEFAULT_ADMIN_ROLE_NAME => array(
+            //_('Default Admin Role Name')
+            'label'                 => 'Default Admin Role Name',
+            'description'           => 'Default Admin Role Name',
+            'type'                  => 'string',
+            'clientRegistryInclude' => false,
+            'setByAdminModule'      => false,
+            'setBySetupModule'      => true,
+            'default'               => 'admin role'
+        ),
+        self::DEFAULT_USER_ROLE_NAME => array(
+            //_('Default User Role Name')
+            'label'                 => 'Default User Role Name',
+            'description'           => 'Default User Role Name',
+            'type'                  => 'string',
+            'clientRegistryInclude' => false,
+            'setByAdminModule'      => false,
+            'setBySetupModule'      => true,
+            'default'               => 'user role'
+        ),
         self::CRONUSERID => array(
                                    //_('Cronuser ID')
             'label'                 => 'Cronuser ID',