mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-10890 all require_login() in modules reviewed and fixed use of $cm
This commit is contained in:
parent
a104debf4f
commit
bb5b72244a
20 changed files with 26 additions and 21 deletions
|
@ -57,6 +57,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
require_login($course, false, $cm);
|
||||
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
require_capability('mod/data:uploadentries', $context);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue