diff --git a/src/Controller/UsersController.php b/src/Controller/UsersController.php index d2235a6..e5258d0 100644 --- a/src/Controller/UsersController.php +++ b/src/Controller/UsersController.php @@ -162,7 +162,7 @@ class UsersController extends AppController public function register() { - if (empty(Configure::read('Cerebrate')['security.registration.self-registration'])) { + if (empty(Configure::read('security.registration.self-registration'))) { throw new UnauthorizedException(__('User self-registration is not open.')); } if ($this->request->is('post')) {