Fix bug: Unable to unassign a task from the API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user