Send notifications on user mentions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user