mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Fix use of incorrect context.
This commit is contained in:
parent
7d6ca931f3
commit
9097fa230d
@ -9,7 +9,7 @@
|
||||
|
||||
/// Require capabilites
|
||||
require_login();
|
||||
require_capability('enrol/authorize:uploadcsv', get_context_instance(CONTEXT_USER, $USER->id));
|
||||
require_capability('enrol/authorize:uploadcsv', get_context_instance(CONTEXT_SYSTEM));
|
||||
|
||||
/// Print header
|
||||
$struploadcsv = get_string('uploadcsv', 'enrol_authorize');
|
||||
|
Loading…
x
Reference in New Issue
Block a user