diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2018-04-22 06:58:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 06:58:33 +1000 |
commit | e189f5f88722f174b3dbba440e795b58bf89c075 (patch) | |
tree | 93cbfa9485ac583ffaa021933e63db9070ce318b | |
parent | 29b3950e32da219d43f6c79ad61d5356bbfb051c (diff) | |
download | volse-hubzilla-e189f5f88722f174b3dbba440e795b58bf89c075.tar.gz volse-hubzilla-e189f5f88722f174b3dbba440e795b58bf89c075.tar.bz2 volse-hubzilla-e189f5f88722f174b3dbba440e795b58bf89c075.zip |
Update PermissionLimits.php
Difficult for me to do this locally at the moment so updating in git
-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 +} |