summaryrefslogtreecommitdiff
path: root/src/controllers
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-10-09 14:57:49 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-10-09 14:57:49 -0400
commit01003f1761631394360697530d3418c1acaf1cd9 (patch)
tree92083501744862e488b1989f92e7933f0869a949 /src/controllers
parent855d769094d175cadda67c1c451279243533aaa5 (diff)
Add the system config option 'anon_userlist' to control if an anonymous userlist is visible or not.
Diffstat (limited to 'src/controllers')
-rw-r--r--src/controllers/Users.class.php5
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();