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

Commit e594718

Browse files
committed
Added Acl for webhook controller
1 parent d9e1be8 commit e594718

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Plugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Kanboard\Plugin\BitbucketWebhook;
44

55
use Kanboard\Core\Plugin\Base;
6+
use Kanboard\Core\Security\Role;
67
use Kanboard\Core\Translator;
78

89
class Plugin extends Base
@@ -19,6 +20,7 @@ public function initialize()
1920

2021
$this->template->hook->attach('template:project:integrations', 'BitbucketWebhook:project/integrations');
2122
$this->route->addRoute('/webhook/bitbucket/:project_id/:token', 'WebhookController', 'handler', 'BitbucketWebhook');
23+
$this->applicationAccessMap->add('WebhookController', 'handler', Role::APP_PUBLIC);
2224
}
2325

2426
public function onStartup()

0 commit comments

Comments
 (0)