diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-29 09:30:36 +0100 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-29 09:30:36 +0100 |
commit | ded63d21a84811c9e082c0fea0110a1b498265d6 (patch) | |
tree | 2d95b985ef8402ae899ced0307af4e8e3d47e431 /app/Api | |
parent | 9ff0abd8d683ab5a285fcf70e27d1bcd1cbc47df (diff) |
Send notifications on user mentions
Diffstat (limited to 'app/Api')
-rw-r--r-- | app/Api/Task.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Api/Task.php b/app/Api/Task.php index 4a7ee932..1491cd35 100644 --- a/app/Api/Task.php +++ b/app/Api/Task.php @@ -71,7 +71,7 @@ class Task extends Base { $this->checkProjectPermission($project_id); - if ($owner_id !== 0 && ! $this->projectPermission->isMember($project_id, $owner_id)) { + if ($owner_id !== 0 && ! $this->projectPermission->isAssignable($project_id, $owner_id)) { return false; } @@ -117,7 +117,7 @@ class Task extends Base return false; } - if ($owner_id !== null && ! $this->projectPermission->isMember($project_id, $owner_id)) { + if ($owner_id !== null && ! $this->projectPermission->isAssignable($project_id, $owner_id)) { return false; } |