Commit c42816cc authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1795977: notrudeform not defined for logged out users"

parents 85b8443b 840b1d04
......@@ -491,8 +491,10 @@ if (isset($addfeedbackform)) {
}
if (isset($objectionform)) {
$smarty->assign('objectionform', $objectionform);
$smarty->assign('notrudeform', $notrudeform);
$smarty->assign('stillrudeform', $stillrudeform);
if ($USER->is_logged_in()) {
$smarty->assign('notrudeform', $notrudeform);
$smarty->assign('stillrudeform', $stillrudeform);
}
$smarty->assign('objectedpage', $view->is_objectionable());
$smarty->assign('objector', $view->is_objectionable($USER->get('id')));
$smarty->assign('objectionreplied', $view->is_objectionable(null, true));
......
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