summaryrefslogtreecommitdiff
path: root/app/Model/ProjectPermission.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/ProjectPermission.php')
-rw-r--r--app/Model/ProjectPermission.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/ProjectPermission.php b/app/Model/ProjectPermission.php
index aaff5e69..3b42751a 100644
--- a/app/Model/ProjectPermission.php
+++ b/app/Model/ProjectPermission.php
@@ -157,7 +157,7 @@ class ProjectPermission extends Base
* @access public
* @param integer $project_id Project id
* @param integer $user_id User id
- * @param bool $is_owner Is user owner of the project
+ * @param integer $is_owner Is user owner of the project
* @return bool
*/
public function setOwner($project_id, $user_id, $is_owner = 1)
@@ -165,7 +165,7 @@ class ProjectPermission extends Base
return $this->db
->table(self::TABLE)
->eq('project_id', $project_id)
- ->eq('user_id', $user_id)
+ ->eq('user_id', $user_id)
->update(array('is_owner' => $is_owner));
}