diff --git a/PHPCI/Helper/LoginIsDisabled.php b/PHPCI/Helper/LoginIsDisabled.php new file mode 100644 index 00000000..208aac23 --- /dev/null +++ b/PHPCI/Helper/LoginIsDisabled.php @@ -0,0 +1,35 @@ + +* @package PHPCI +* @subpackage Web +*/ +class LoginIsDisabled +{ + /** + * Checks if + * @param $method + * @param array $params + * @return mixed|null + */ + public function __call($method, $params = array()) + { + unset($method, $params); + + $config = b8\Config::getInstance(); + $state = (bool) $config->get('phpci.authentication_settings.state', false); + + return (false !== $state); + } +} diff --git a/PHPCI/View/layout.phtml b/PHPCI/View/layout.phtml index b6111646..a3f995d3 100644 --- a/PHPCI/View/layout.phtml +++ b/PHPCI/View/layout.phtml @@ -124,6 +124,7 @@ +LoginIsDisabled()): ?> + @@ -159,6 +161,8 @@