gitcontroller, allows calling webhook for local/remote git project
This commit is contained in:
parent
4120cb683d
commit
6b63e47cfd
2 changed files with 61 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class Application extends b8\Application
|
|||
|
||||
// Validate the user's session unless it is a login/logout action or a web hook:
|
||||
$sessionAction = ($this->controllerName == 'Session' && in_array($this->action, array('login', 'logout')));
|
||||
$externalAction = in_array($this->controllerName, array('Bitbucket', 'Github', 'Gitlab', 'BuildStatus'));
|
||||
$externalAction = in_array($this->controllerName, array('Bitbucket', 'Github', 'Gitlab', 'BuildStatus', 'Git'));
|
||||
$skipValidation = ($externalAction || $sessionAction);
|
||||
|
||||
if ($skipValidation || $this->validateSession()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue