mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
|
@ -1769,10 +1769,16 @@ function load_temp_role($context, $roleid, $accessdata) {
|
|||
/**
|
||||
* Check all the login enrolment information for the given user object
|
||||
* by querying the enrolment plugins
|
||||
* @return void
|
||||
*/
|
||||
function check_enrolment_plugins(&$user) {
|
||||
global $CFG;
|
||||
|
||||
if (empty($user->id) or isguestuser($user)) {
|
||||
// shortcut - there is no enrolment work for guests and not-logged-in users
|
||||
return;
|
||||
}
|
||||
|
||||
static $inprogress; // To prevent this function being called more than once in an invocation
|
||||
|
||||
if (!empty($inprogress[$user->id])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue