aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-04-30 11:34:10 +0200
committerMario <mario@mariovavti.com>2018-04-30 11:34:10 +0200
commitf15c12376adad6534c8c0ea547a7548697eb8379 (patch)
tree9225facd7d5ee5c318929ce291b41df79967aed6 /Zotlabs/Access
parentb00c22b69b55400e69705530934d577d8487541d (diff)
parente189f5f88722f174b3dbba440e795b58bf89c075 (diff)
downloadvolse-hubzilla-f15c12376adad6534c8c0ea547a7548697eb8379.tar.gz
volse-hubzilla-f15c12376adad6534c8c0ea547a7548697eb8379.tar.bz2
volse-hubzilla-f15c12376adad6534c8c0ea547a7548697eb8379.zip
Merge branch 'master' of https://github.com/redmatrix/hubzilla
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r--Zotlabs/Access/PermissionLimits.php6
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
+}