Permalink
Browse files

Merge branch 'MDL-55744-34_atto_should_not_autosave_on_not_loggedin_u…

…sers' of https://github.com/dravek/moodle into MOODLE_34_STABLE
  • Loading branch information...
dmonllao committed Sep 3, 2018
2 parents 69e1547 + b391ba4 commit f14acd208f76e563b900946b673bfa81d1779b85
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/editor/atto/lib.php
@@ -180,8 +180,8 @@ protected function get_init_params($elementid, array $options = null, array $fpo
}
$contentcss = $PAGE->theme->editor_css_url()->out(false);
// Autosave disabled for guests.
if (isguestuser()) {
// Autosave disabled for guests and not logged in users.
if (isguestuser() OR !isloggedin()) {
$autosave = false;
}
// Note <> is a safe separator, because it will not appear in the output of s().

0 comments on commit f14acd2

Please sign in to comment.