MDL-14589 no file browsing if not logged-in
This commit is contained in:
@@ -43,7 +43,8 @@ class file_browser {
|
||||
$user = $DB->get_record('user', array('id'=>$context->instanceid));
|
||||
}
|
||||
|
||||
if (isguestuser($user)) {
|
||||
if (isguestuser($user) or empty($user->id)) {
|
||||
// no guests or not logged in users here
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user