mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-17754 next round of session related refactoring
This commit is contained in:
parent
6c928b4cfe
commit
b7b64ff2e0
13 changed files with 105 additions and 80 deletions
|
@ -1141,7 +1141,7 @@ class generator_cli extends generator {
|
|||
echo "Invalid username or password!{$this->eolchar}";
|
||||
die();
|
||||
}
|
||||
$USER = complete_user_login($user);
|
||||
complete_user_login($user);
|
||||
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
|
||||
if (!has_capability('moodle/site:doanything', $systemcontext)) {
|
||||
echo "You do not have administration privileges on this Moodle site. "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue