X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=admin_team_add.php;h=08a1931176818c16bb64d42c47247e8ad91ec8fd;hb=dc00748e76b054fb1163f7a3835b686a752fbf8a;hp=e88da19a3c5e2d3d419c16cca5c72f2e28729cee;hpb=f1c11908a996c1a0d9582ef6d32490e5ce15f02d;p=timetracker.git 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,