anonymous comments shouldn't be allowed in StdLimits

This commit is contained in:
zotlabs 2018-04-20 14:38:15 -07:00
parent d5c451c4a8
commit e05f41630b

View File

@ -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;