From e5947188ff66eb7f989b4995b9c1221068de6cb5 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 1 Jun 2016 21:45:35 -0400 Subject: [PATCH] Added Acl for webhook controller --- Plugin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugin.php b/Plugin.php index f3e61c8..8aa3fc9 100644 --- a/Plugin.php +++ b/Plugin.php @@ -3,6 +3,7 @@ namespace Kanboard\Plugin\BitbucketWebhook; use Kanboard\Core\Plugin\Base; +use Kanboard\Core\Security\Role; use Kanboard\Core\Translator; class Plugin extends Base @@ -19,6 +20,7 @@ public function initialize() $this->template->hook->attach('template:project:integrations', 'BitbucketWebhook:project/integrations'); $this->route->addRoute('/webhook/bitbucket/:project_id/:token', 'WebhookController', 'handler', 'BitbucketWebhook'); + $this->applicationAccessMap->add('WebhookController', 'handler', Role::APP_PUBLIC); } public function onStartup()