summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-27 15:14:04 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-27 15:14:04 -0400
commit6c772de184505ae339a970631c8e98f3e3b6e5f0 (patch)
tree47aaafd9ef996041c7857db72ad1d274d7b44c42 /app/Api
parente6e286be8315345bed575712b338629e4ba76bcb (diff)
Remove column default_project_id for users because it's useless now
Diffstat (limited to 'app/Api')
-rw-r--r--app/Api/User.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/app/Api/User.php b/app/Api/User.php
index 166ef2c1..0f0f4e59 100644
--- a/app/Api/User.php
+++ b/app/Api/User.php
@@ -27,7 +27,7 @@ class User extends Base
return $this->user->remove($user_id);
}
- public function createUser($username, $password, $name = '', $email = '', $is_admin = 0, $default_project_id = 0)
+ public function createUser($username, $password, $name = '', $email = '', $is_admin = 0)
{
$values = array(
'username' => $username,
@@ -36,7 +36,6 @@ class User extends Base
'name' => $name,
'email' => $email,
'is_admin' => $is_admin,
- 'default_project_id' => $default_project_id,
);
list($valid,) = $this->user->validateCreation($values);
@@ -44,7 +43,7 @@ class User extends Base
return $valid ? $this->user->create($values) : false;
}
- public function createLdapUser($username = '', $email = '', $is_admin = 0, $default_project_id = 0)
+ public function createLdapUser($username = '', $email = '', $is_admin = 0)
{
$ldap = new Ldap($this->container);
$user = $ldap->lookup($username, $email);
@@ -59,13 +58,12 @@ class User extends Base
'email' => $user['email'],
'is_ldap_user' => 1,
'is_admin' => $is_admin,
- 'default_project_id' => $default_project_id,
);
return $this->user->create($values);
}
- public function updateUser($id, $username = null, $name = null, $email = null, $is_admin = null, $default_project_id = null)
+ public function updateUser($id, $username = null, $name = null, $email = null, $is_admin = null)
{
$values = array(
'id' => $id,
@@ -73,7 +71,6 @@ class User extends Base
'name' => $name,
'email' => $email,
'is_admin' => $is_admin,
- 'default_project_id' => $default_project_id,
);
foreach ($values as $key => $value) {