diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2018-04-22 07:00:01 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 07:00:01 +1000 |
commit | 2431631b4600d8b405fdddc38fd59c8a20c8203c (patch) | |
tree | 58b3372fcb36c7ec1903594890cdf177ea635239 | |
parent | fa78dc79f3f384918a267344920f5802e68ad828 (diff) | |
download | volse-hubzilla-2431631b4600d8b405fdddc38fd59c8a20c8203c.tar.gz volse-hubzilla-2431631b4600d8b405fdddc38fd59c8a20c8203c.tar.bz2 volse-hubzilla-2431631b4600d8b405fdddc38fd59c8a20c8203c.zip |
Update PermissionLimits.php
anon comment permissions fix
-rw-r--r-- | Zotlabs/Access/PermissionLimits.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Access/PermissionLimits.php b/Zotlabs/Access/PermissionLimits.php index 1d15098fc..125d11b7b 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; @@ -90,4 +88,4 @@ class PermissionLimits { return false; } -}
\ No newline at end of file +} |