summaryrefslogtreecommitdiff
path: root/app/Integration/BitbucketWebhook.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/BitbucketWebhook.php
parent9ff0abd8d683ab5a285fcf70e27d1bcd1cbc47df (diff)
Send notifications on user mentions
Diffstat (limited to 'app/Integration/BitbucketWebhook.php')
-rw-r--r--app/Integration/BitbucketWebhook.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Integration/BitbucketWebhook.php b/app/Integration/BitbucketWebhook.php
index 97a39437..3814e35c 100644
--- a/app/Integration/BitbucketWebhook.php
+++ b/app/Integration/BitbucketWebhook.php
@@ -81,7 +81,7 @@ class BitbucketWebhook extends \Kanboard\Core\Base
if (! empty($task)) {
$user = $this->user->getByUsername($payload['actor']['username']);
- if (! empty($user) && ! $this->projectPermission->isMember($this->project_id, $user['id'])) {
+ if (! empty($user) && ! $this->projectPermission->isAssignable($this->project_id, $user['id'])) {
$user = array();
}
@@ -213,7 +213,7 @@ class BitbucketWebhook extends \Kanboard\Core\Base
return false;
}
- if (! $this->projectPermission->isMember($this->project_id, $user['id'])) {
+ if (! $this->projectPermission->isAssignable($this->project_id, $user['id'])) {
return false;
}