Commit b19a318b authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Merge "Only Admins can comment on objectionable pages when comments turned off"

parents dcef082a ee77e036
......@@ -4753,7 +4753,8 @@ class View {
}
}
if ($a->allowcomments) {
if ($a->allowcomments && (($a->accesstype == 'objectionable' && ($user->get('admin')
|| $user->is_institutional_admin()) || $a->accesstype != 'objectionable'))) {
$allowcomments = $allowcomments || $a->allowcomments;
$approvecomments = $approvecomments && $a->approvecomments;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment