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 d9e1be8 commit e594718
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit e594718

Please sign in to comment.