Update PermissionLimits.php
anon comment permissions fix
This commit is contained in:
parent
fa78dc79f3
commit
2431631b46
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user