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