Loading view.php +5 Changes for view.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -38,6 +38,11 @@ $delete = optional_param('delete', null, PARAM_RAW); $id = optional_param('id', null, PARAM_INT); require_login(); $context = context_system::instance(); if (!has_capability('block/learning_plan:managepages', $context)) { redirect($CFG->wwwroot); } $context = context_system::instance(); $PAGE->set_context($context); $PAGE->set_url('/blocks/learning_plan/view.php'); Loading Loading
view.php +5 Changes for view.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -38,6 +38,11 @@ $delete = optional_param('delete', null, PARAM_RAW); $id = optional_param('id', null, PARAM_INT); require_login(); $context = context_system::instance(); if (!has_capability('block/learning_plan:managepages', $context)) { redirect($CFG->wwwroot); } $context = context_system::instance(); $PAGE->set_context($context); $PAGE->set_url('/blocks/learning_plan/view.php'); Loading