-
Bug
-
Resolution: Fixed
-
Minor
-
2.9.4, 3.0.2
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-53407-editing-css -
Easy
-
If a user (who is a teacher in some course) chooses to be in editing mode, the CSS class `editing` is added to the body of every page, even after the user navigates to a page/course/frontpage that she may not edit.
This came up when I used a theme that uses this class in order to adapt the display. It surrounds block areas with dashed lines, indicating that these may be edited / that they are drop zones for blocks. The dashed lines were also visible to users that are not allowed to edit the page that they are on.
WHAT I EXPECTED
The CSS class `editing` should only be added if the user is in editing mode AND she is allowed to edit the rendered page.
WHAT ACTUALLY HAPPENED
If the user is in editing mode, the CSS class `editing` is added on every page.