diff --git a/enrol/authorize/uploadcsv.php b/enrol/authorize/uploadcsv.php index 625eb4b9feb..e37a76d1950 100644 --- a/enrol/authorize/uploadcsv.php +++ b/enrol/authorize/uploadcsv.php @@ -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');