mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
fixed missing exception
This commit is contained in:
parent
68573df5e1
commit
c05260de32
@ -548,7 +548,7 @@ class course_enrolment_manager {
|
||||
require_capability('moodle/role:assign', $this->context);
|
||||
if (!array_key_exists($roleid, $this->get_assignable_roles())) {
|
||||
if (is_defined('AJAX_SCRIPT')) {
|
||||
throw new moodle_;
|
||||
throw new moodle_exception('invalidrole');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user