From df2b88a9d23d7ef488d1dd28b04ba4468ff79b3e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 Jul 2023 20:33:10 +0200 Subject: [PATCH] Fix public access --- htdocs/public/members/public_list.php | 4 ++++ 1 file changed, 4 insertions(+) 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 = '';