Added config params github.comments.(commit|pull_request) for allow or deny for PHP Censor to commenting on Github
This commit is contained in:
parent
d77f0e8474
commit
d209482cda
9 changed files with 52 additions and 27 deletions
|
|
@ -159,8 +159,8 @@ class Application extends b8\Application
|
|||
protected function shouldSkipAuth()
|
||||
{
|
||||
$config = b8\Config::getInstance();
|
||||
$state = (bool)$config->get('php-censor.authentication_settings.state', false);
|
||||
$userId = $config->get('php-censor.authentication_settings.user_id', 0);
|
||||
$state = (bool)$config->get('php-censor.authentication_settings.state', false);
|
||||
$userId = $config->get('php-censor.authentication_settings.user_id', 0);
|
||||
|
||||
if (false !== $state && 0 != (int)$userId) {
|
||||
$user = b8\Store\Factory::getStore('User')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue