MDL-27896 context - Fixed editor context to observe filter status
This commit is contained in:
@@ -113,7 +113,14 @@ if (!empty($CFG->usetags)) {
|
||||
|
||||
if ($user->id !== -1) {
|
||||
$usercontext = get_context_instance(CONTEXT_USER, $user->id);
|
||||
$editoroptions = array('maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$CFG->maxbytes, 'trusttext'=>false, 'forcehttps'=>false);
|
||||
$editoroptions = array(
|
||||
'maxfiles' => EDITOR_UNLIMITED_FILES,
|
||||
'maxbytes' => $CFG->maxbytes,
|
||||
'trusttext' => false,
|
||||
'forcehttps' => false,
|
||||
'context' => $usercontext
|
||||
);
|
||||
|
||||
$user = file_prepare_standard_editor($user, 'description', $editoroptions, $usercontext, 'user', 'profile', 0);
|
||||
} else {
|
||||
$usercontext = null;
|
||||
|
||||
Reference in New Issue
Block a user