diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-20 14:38:15 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-20 14:38:15 -0700 |
commit | e05f41630bd7d4fa2b7cae7ea400bc04c1cc8afd (patch) | |
tree | 44808385102efd82255efb4931f2303e6782ddf3 /Zotlabs | |
parent | d5c451c4a8e6e21554d69f35ad77a85281f3d2be (diff) | |
download | volse-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')
-rw-r--r-- | Zotlabs/Access/PermissionLimits.php | 4 |
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; |