summaryrefslogtreecommitdiff
path: root/app/Integration/GithubWebhook.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-29 09:30:36 +0100
committerFrederic Guillot <fred@kanboard.net>2015-12-29 09:30:36 +0100
commitded63d21a84811c9e082c0fea0110a1b498265d6 (patch)
tree2d95b985ef8402ae899ced0307af4e8e3d47e431 /app/Integration/GithubWebhook.php
parent9ff0abd8d683ab5a285fcf70e27d1bcd1cbc47df (diff)
Send notifications on user mentions
Diffstat (limited to 'app/Integration/GithubWebhook.php')
-rw-r--r--app/Integration/GithubWebhook.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Integration/GithubWebhook.php b/app/Integration/GithubWebhook.php
index c8b53e37..6dd7a8d9 100644
--- a/app/Integration/GithubWebhook.php
+++ b/app/Integration/GithubWebhook.php
@@ -149,7 +149,7 @@ class GithubWebhook extends \Kanboard\Core\Base
if (! empty($task)) {
$user = $this->user->getByUsername($payload['comment']['user']['login']);
- if (! empty($user) && ! $this->projectPermission->isMember($this->project_id, $user['id'])) {
+ if (! empty($user) && ! $this->projectPermission->isAssignable($this->project_id, $user['id'])) {
$user = array();
}
@@ -266,7 +266,7 @@ class GithubWebhook extends \Kanboard\Core\Base
$user = $this->user->getByUsername($issue['assignee']['login']);
$task = $this->taskFinder->getByReference($this->project_id, $issue['number']);
- if (! empty($user) && ! empty($task) && $this->projectPermission->isMember($this->project_id, $user['id'])) {
+ if (! empty($user) && ! empty($task) && $this->projectPermission->isAssignable($this->project_id, $user['id'])) {
$event = array(
'project_id' => $this->project_id,
'task_id' => $task['id'],