X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/ecbf1ecf19bfeb85794717fc7a6deb7ecc8c5f58..955fd23bfdcee44acebe95fcfbae416c8e21649b:/role_add.php diff --git a/role_add.php b/role_add.php index 71220089..b44304be 100644 --- a/role_add.php +++ b/role_add.php @@ -61,12 +61,13 @@ if ($request->isPost()) { if ($err->no()) { $existing_role = ttRoleHelper::getRoleByRank($cl_rank); if (!$existing_role) { - // Update role information. + // Insert a role with default user rights. if (ttRoleHelper::insert(array( 'team_id' => $user->team_id, 'name' => $cl_name, 'rank' => $cl_rank, 'description' => $cl_description, + 'rights' => 'data_entry,view_own_data,manage_own_settings,view_users', // Default user rights. 'status' => ACTIVE))) { header('Location: roles.php'); exit();