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

Commit efd4e30

Browse files
committed
Added Acl for webhook controller
1 parent 3114549 commit efd4e30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Plugin.php

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

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

89
class Plugin extends Base
@@ -17,8 +18,8 @@ public function initialize()
1718
$this->actionManager->getAction('\Kanboard\Action\TaskOpen')->addEvent(WebhookHandler::EVENT_ISSUE_REOPENED);
1819

1920
$this->template->hook->attach('template:project:integrations', 'GitlabWebhook:project/integrations');
20-
2121
$this->route->addRoute('/webhook/gitlab/:project_id/:token', 'WebhookController', 'handler', 'GitlabWebhook');
22+
$this->applicationAccessMap->add('WebhookController', 'handler', Role::APP_PUBLIC);
2223
}
2324

2425
public function onStartup()

0 commit comments

Comments
 (0)