mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
NOBUG set missing context on course delete page
This commit is contained in:
parent
0d6b8715cd
commit
de4127cb2c
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
$delete = optional_param('delete', '', PARAM_ALPHANUM); // delete confirmation hash
|
$delete = optional_param('delete', '', PARAM_ALPHANUM); // delete confirmation hash
|
||||||
|
|
||||||
$PAGE->set_url('/course/delete.php', array('id' => $id));
|
$PAGE->set_url('/course/delete.php', array('id' => $id));
|
||||||
|
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
||||||
require_login();
|
require_login();
|
||||||
|
|
||||||
if (!can_delete_course($id)) {
|
if (!can_delete_course($id)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue