X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/f1c11908a996c1a0d9582ef6d32490e5ce15f02d..8f4b1979cdee8d42f8098f80e79e8ca0509841fb:/admin_team_add.php diff --git a/admin_team_add.php b/admin_team_add.php index e88da19a..08a19311 100644 --- a/admin_team_add.php +++ b/admin_team_add.php @@ -32,7 +32,7 @@ import('ttUserHelper'); import('ttRoleHelper'); // Access check. -if (!ttAccessCheck(right_administer_site)) { +if (!ttAccessAllowed('administer_site')) { header('Location: access_denied.php'); exit(); } @@ -107,7 +107,6 @@ if ($request->isPost()) { // Team created, now create a team manager. $user_id = ttUserHelper::insert(array( 'team_id' => $team_id, - 'role' => ROLE_MANAGER, 'role_id' => $role_id, 'name' => $cl_manager_name, 'login' => $cl_manager_login,