Commit 66da66ca authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't let users report objectionable views when not logged in

parent c4562b09
......@@ -2486,6 +2486,11 @@ function objection_form() {
function objection_form_submit(Pieform $form, $values) {
global $USER, $view, $artefact;
if (!$USER->is_logged_in()) {
throw new AccessDeniedException();
}
require_once('activity.php');
$data = new StdClass;
......
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