Skip to content
Snippets Groups Projects
Commit 99cb7915 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Fixed bug for setting incoursesettingsswitchedrole without showsettingsincourse enabled.

parent d9165ca5
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2018-01-15 - Fixed bug for setting incoursesettingsswitchedrole without showsettingsincourse enabled.
* 2018-01-12 - Fixed bug for the frontpage settings.
* 2018-01-12 - Fixed bug for the profile editing button in admin view.
* 2018-01-11 - Fixed bug in the hierarchical displaying of lists within the course.
......
......@@ -850,9 +850,10 @@ a[href^="mailto"]::before {
}
}
/* Setting to move 'Switch role to...' menu item to the course settings. */
@if variable-exists(incoursesettingsswitchtorole) {
@if $incoursesettingsswitchtorole == 'yes' {
/* Setting to move 'Switch role to...' menu item to the course settings - but only if
setting showsettingsincourse is also enabled. */
@if (variable-exists(incoursesettingsswitchtorole) and variable-exists(showsettingsincourse)) {
@if ($incoursesettingsswitchtorole == 'yes' and $showsettingsincourse == 'yes') {
/* Hide the switch role to menu item within the user menu */
.usermenu {
.dropdown-menu a[data-title*="switchroleto"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment