diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-20 14:38:15 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-20 18:58:21 -0700 |
commit | 1bb67f63e37a10b9bcf5c6ea1d0d4ae431b00cab (patch) | |
tree | 5cecf97e3da35d2f5a465043e5a0b8193275e98e /Zotlabs | |
parent | b12d254427135bc3313f22163e9c3f4c42e68076 (diff) | |
download | volse-hubzilla-1bb67f63e37a10b9bcf5c6ea1d0d4ae431b00cab.tar.gz volse-hubzilla-1bb67f63e37a10b9bcf5c6ea1d0d4ae431b00cab.tar.bz2 volse-hubzilla-1bb67f63e37a10b9bcf5c6ea1d0d4ae431b00cab.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 1d15098fc..eb660ead9 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; |