Commit dc64a0fe authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1795977: notrudeform not defined for logged out users


Change-Id: Ic6f1d0aaec7e8722a81860d01cc74b2d254968da
(cherry picked from commit 840b1d04)
parent 6f5b32fa
......@@ -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));
Supports Markdown
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