Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
Added Acl for webhook controller
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Jun 2, 2016
1 parent cf915fe commit 02b8a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Kanboard\Plugin\GithubWebhook;

use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Security\Role;
use Kanboard\Core\Translator;

class Plugin extends Base
Expand All @@ -19,8 +20,8 @@ public function initialize()
$this->actionManager->getAction('\Kanboard\Action\TaskOpen')->addEvent(WebhookHandler::EVENT_ISSUE_REOPENED);

$this->template->hook->attach('template:project:integrations', 'GithubWebhook:project/integrations');

$this->route->addRoute('/webhook/github/:project_id/:token', 'Webhook', 'handler', 'GithubWebhook');
$this->applicationAccessMap->add('Webhook', 'handler', Role::APP_PUBLIC);
}

public function onStartup()
Expand Down

0 comments on commit 02b8a9c

Please sign in to comment.