Work in progress on roles.
[timetracker.git] / profile_edit.php
index 412dc62..7f024fe 100644 (file)
@@ -29,6 +29,7 @@
 require_once('initialize.php');
 import('form.Form');
 import('ttUserHelper');
+import('ttRoleHelper');
 
 // Access check.
 if (!ttAccessCheck(right_data_entry|right_view_reports)) {
@@ -299,6 +300,12 @@ if ($request->isPost()) {
 
       $plugins = trim($plugins, ',');
 
+      // If we use roles... No, we'll do it differently.
+      /*
+      if ($cl_roles && !ttRoleHelper::rolesExist()) {
+         ttRoleHelper::createDefaultRoles();
+      }*/
+
       // Prepare config string.
       if ($cl_roles)
         $config .= ',roles';