aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-18 22:25:41 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-19 16:09:07 +0200
commit1472f85b162ea6f1ab9e19e94b86fc4a8ef074be (patch)
tree5bcfc4803bb4305790d7cce894cc96a072e86840 /Zotlabs/Access
parent3d6255ae24310a935caf4e74729aa7165f94aeda (diff)
downloadvolse-hubzilla-1472f85b162ea6f1ab9e19e94b86fc4a8ef074be.tar.gz
volse-hubzilla-1472f85b162ea6f1ab9e19e94b86fc4a8ef074be.tar.bz2
volse-hubzilla-1472f85b162ea6f1ab9e19e94b86fc4a8ef074be.zip
allow moderated comments like wordpress if permissions are compatible
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r--Zotlabs/Access/PermissionLimits.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Access/PermissionLimits.php b/Zotlabs/Access/PermissionLimits.php
index 909b654d5..8caeedb91 100644
--- a/Zotlabs/Access/PermissionLimits.php
+++ b/Zotlabs/Access/PermissionLimits.php
@@ -10,7 +10,7 @@ class PermissionLimits {
$perms = Permissions::Perms();
$limits = array();
foreach($perms as $k => $v) {
- if(strstr($k,'view'))
+ if(strstr($k,'view') || $k === 'post_comments')
$limits[$k] = PERMS_PUBLIC;
else
$limits[$k] = PERMS_SPECIFIC;