aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-04-22 10:54:41 +0200
committerGitHub <noreply@github.com>2018-04-22 10:54:41 +0200
commit51c533536fe1569aef0e0451db95970073084f75 (patch)
treef69eb0e6e2fda2f6c08c4afeee343d3c724f2dd8 /Zotlabs/Access
parent84e2bdcf76109eaa1e54007cb42d9aad8fc144b1 (diff)
parent5a736d338b1c0aa1671d34ff724c2649ccf7e1e7 (diff)
downloadvolse-hubzilla-51c533536fe1569aef0e0451db95970073084f75.tar.gz
volse-hubzilla-51c533536fe1569aef0e0451db95970073084f75.tar.bz2
volse-hubzilla-51c533536fe1569aef0e0451db95970073084f75.zip
Merge pull request #10 from redmatrix/dev
Dev
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 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;