From cfb3706309c907c57354e213e8785e60fcfb8750 Mon Sep 17 00:00:00 2001 From: Herb vd Dool Date: Sun, 15 Oct 2017 00:47:49 -0400 Subject: [PATCH] add definition of isUserRegistrationPermitted to Backdrop class --- CRM/Utils/System/Backdrop.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CRM/Utils/System/Backdrop.php b/CRM/Utils/System/Backdrop.php index 7de0c8a2cb..47de8e6ec9 100644 --- a/CRM/Utils/System/Backdrop.php +++ b/CRM/Utils/System/Backdrop.php @@ -412,6 +412,16 @@ AND u.status = 1 user_login_finalize($params); } + /** + * @inheritDoc + */ + public function isUserRegistrationPermitted() { + if (config_get('system.core', 'user_register') == 'admin_only') { + return FALSE; + } + return TRUE; + } + /** * @inheritDoc */ -- 2.25.1