diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-23 12:04:10 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-23 12:04:10 -0500 |
commit | 0448fdc56b9d7c58ac78d8375447c59b68702562 (patch) | |
tree | 301715e61c2c148b7e1059e3f0b989cf20d65a9b /app | |
parent | 94207cf8ea41132fd7279ab08845677542eb3c9f (diff) |
Fix bug: Unable to unassign a task from the API
Diffstat (limited to 'app')
-rw-r--r-- | app/Api/Task.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Api/Task.php b/app/Api/Task.php index 1491cd35..97d89775 100644 --- a/app/Api/Task.php +++ b/app/Api/Task.php @@ -117,7 +117,7 @@ class Task extends Base return false; } - if ($owner_id !== null && ! $this->projectPermission->isAssignable($project_id, $owner_id)) { + if ($owner_id !== null && $owner_id != 0 && ! $this->projectPermission->isAssignable($project_id, $owner_id)) { return false; } |