diff options
-rw-r--r-- | src/controllers/Users.class.php | 5 |
1 files 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(); |