"MDL-15351, display user private files"
This commit is contained in:
@@ -37,7 +37,7 @@ $string['areacourseintro'] = 'Course introduction';
|
||||
$string['arearoot'] = 'System';
|
||||
$string['areauserdraft'] = 'Drafts';
|
||||
$string['areauserbackup'] = 'User backup';
|
||||
$string['areauserpersonal'] = 'Personal';
|
||||
$string['areauserpersonal'] = 'User private';
|
||||
$string['areauserprofile'] = 'Profile';
|
||||
$string['attachedfiles'] = 'Attached files';
|
||||
$string['attachment'] = 'Attachment';
|
||||
|
||||
@@ -105,6 +105,9 @@ class file_info_user extends file_info {
|
||||
$children[] = $child;
|
||||
}
|
||||
|
||||
if ($child = $this->browser->get_file_info(get_context_instance(CONTEXT_USER, $USER->id), 'user_private', 0)) {
|
||||
$children[] = $child;
|
||||
}
|
||||
// do not list user_draft here - it is browsable only if you know the draft itemid ;-)
|
||||
|
||||
return $children;
|
||||
|
||||
Reference in New Issue
Block a user