-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.0.6
-
None
-
Any
-
Any
-
MOODLE_20_STABLE
-
-
When logged in as a non-site admin on moodle 2.0.6, clicking on "Site Home" redirects directly to "My Home" so the user can never reach "Site Home".
This is caused by the logic in index.php for site home being incorrect.
Currently as :
} else if ($CFG->defaulthomepage == HOMEPAGE_MY && (optional_param('redirect', true, PARAM_BOOL) || !$hassiteconfig))
else if ($CFG->defaulthomepage == HOMEPAGE_MY && optional_param('redirect', true, PARAM_BOOL) && !$hassiteconfig) {
redirect($CFG->wwwroot .'/my/');