Fix bug: Unable to unassign a task from the API

This commit is contained in:
Frederic Guillot
2016-01-23 12:04:10 -05:00
parent 94207cf8ea
commit 0448fdc56b
3 changed files with 60 additions and 1 deletions

View File

@@ -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;
}