diff --git a/htdocs/public/members/public_list.php b/htdocs/public/members/public_list.php index 700c0383516..cd7e51460ab 100644 --- a/htdocs/public/members/public_list.php +++ b/htdocs/public/members/public_list.php @@ -111,6 +111,10 @@ if (!$sortfield) { * View */ +if (empty($conf->global->MEMBER_PUBLIC_ENABLED)) { + httponly_accessforbidden('Public access of list of members is not enabled'); +} + $form = new Form($db); $morehead = '';