X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fuser_add.php;h=93411452832ce917e30969daf1999b9b64bd1f73;hb=2bd9983978cf8d6263e27a531aeb33f365667e37;hp=838981de4786c0f838be225d313f824c77c10810;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/mobile/user_add.php b/mobile/user_add.php index 838981de..93411452 100644 --- a/mobile/user_add.php +++ b/mobile/user_add.php @@ -33,18 +33,19 @@ import('ttUserHelper'); import('form.Table'); import('form.TableColumn'); -// Access check. +// Access checks. if (!ttAccessAllowed('manage_users')) { header('Location: access_denied.php'); exit(); } +// End of access checks. // Use the "limit" plugin if we have one. Ignore include errors. // The "limit" plugin is not required for normal operation of the Time Tracker. @include('plugins/limit/user_add.php'); if ($user->isPluginEnabled('cl')) - $clients = ttTeamHelper::getActiveClients($user->team_id); + $clients = ttTeamHelper::getActiveClients($user->group_id); $assigned_projects = array(); if ($request->isPost()) { @@ -88,7 +89,7 @@ if ($user->isPluginEnabled('cl')) $form->addInput(array('type'=>'floatfield','maxlength'=>'10','name'=>'rate','format'=>'.2','value'=>$cl_rate)); -$projects = ttTeamHelper::getActiveProjects($user->team_id); +$projects = ttTeamHelper::getActiveProjects($user->group_id); // Define classes for the projects table. class NameCellRenderer extends DefaultCellRenderer { @@ -146,7 +147,7 @@ if ($request->isPost()) { 'login' => $cl_login, 'password' => $cl_password1, 'rate' => $cl_rate, - 'team_id' => $user->team_id, + 'group_id' => $user->group_id, 'role_id' => $cl_role_id, 'client_id' => $cl_client_id, 'projects' => $assigned_projects,