Commit ee77e036 authored by Robert Lyon's avatar Robert Lyon

Only Admins can comment on objectionable pages when comments turned off

Bug 1310861

Currently if someone marks a page, that has comments set to off,
objectionable then eveyone that can access the page can now leave

Have adjusted it so that only admins can leave comments.

Change-Id: I82bd01814e73c39b056082965a6b483e6346a82f
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 4a6903f7
......@@ -4728,7 +4728,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