Fix use of incorrect context.

This commit is contained in:
tjhunt 2009-07-20 08:29:53 +00:00
parent 7d6ca931f3
commit 9097fa230d

View File

@ -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');