From 27f246828b28762785f9397820c080c6ae5f5c21 Mon Sep 17 00:00:00 2001 From: Sesostris Vieira Date: Wed, 30 Apr 2014 14:29:17 -0300 Subject: [PATCH] Acerto no review do certificado para imprimir segundas vias --- review.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/review.php b/review.php index 69c6fbb..40d8d7f 100644 --- a/review.php +++ b/review.php @@ -44,12 +44,11 @@ if (!$certificate = $DB->get_record('certificate', array('id'=> $cm->instance))) print_error('course module is incorrect'); } -// Requires a course login -require_course_login($course->id, true, $cm); +// Requires login +require_login(); // Check the capabilities $context = context_module::instance($cm->id); -require_capability('mod/certificate:view', $context); // Initialize $PAGE, compute blocks $PAGE->set_url('/mod/certificate/review.php', array('id' => $cm->id));