aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-20 14:38:15 -0700
committerzotlabs <mike@macgirvin.com>2018-04-20 14:38:15 -0700
commite05f41630bd7d4fa2b7cae7ea400bc04c1cc8afd (patch)
tree44808385102efd82255efb4931f2303e6782ddf3 /Zotlabs/Access
parentd5c451c4a8e6e21554d69f35ad77a85281f3d2be (diff)
downloadvolse-hubzilla-e05f41630bd7d4fa2b7cae7ea400bc04c1cc8afd.tar.gz
volse-hubzilla-e05f41630bd7d4fa2b7cae7ea400bc04c1cc8afd.tar.bz2
volse-hubzilla-e05f41630bd7d4fa2b7cae7ea400bc04c1cc8afd.zip
anonymous comments shouldn't be allowed in StdLimits
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r--Zotlabs/Access/PermissionLimits.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/Zotlabs/Access/PermissionLimits.php b/Zotlabs/Access/PermissionLimits.php
index e0ee88367..c11dc95e6 100644
--- a/Zotlabs/Access/PermissionLimits.php
+++ b/Zotlabs/Access/PermissionLimits.php
@@ -41,10 +41,8 @@ class PermissionLimits {
$limits = [];
$perms = Permissions::Perms();
- $anon_comments = get_config('system','anonymous_comments',true);
-
foreach($perms as $k => $v) {
- if(strstr($k, 'view') || ($k === 'post_comments' && $anon_comments))
+ if(strstr($k, 'view'))
$limits[$k] = PERMS_PUBLIC;
else
$limits[$k] = PERMS_SPECIFIC;