From 01003f1761631394360697530d3418c1acaf1cd9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 9 Oct 2011 14:57:49 -0400 Subject: Add the system config option 'anon_userlist' to control if an anonymous userlist is visible or not. --- src/controllers/Users.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php index 24bb8aa..ac6b06a 100644 --- a/src/controllers/Users.class.php +++ b/src/controllers/Users.class.php @@ -308,13 +308,12 @@ class Users extends Controller { private function show_index($routed, $remainder) { global $mm; $db = $mm->database(); - /* $logged_in_user = Auth::getObj(Login::isLoggedIn()); - if (!$logged_in_user->isUser()) { + $anon_userlist = $db->getSysConf('anon_userlist')=='true'; + if (!$anon_userlist && !$logged_in_user->isUser()) { $this->http401($routed, $remainder); exit(); } - */ $vars = array(); $vars['attribs'] = $this->getIndexAttribs(); -- cgit v1.2.3-54-g00ecf