Commit e2fec021 authored by 3i Logic LMS's avatar 3i Logic LMS
Browse files

Implement Security

parent 2740dbfd
Loading
Loading
Loading
Loading
+5
Changes for view.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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');