mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-50038 my: Redirect admin users to the notifications page when needed
This commit is contained in:
parent
84ea226616
commit
94e6f38fa6
@ -46,6 +46,11 @@ $reset = optional_param('reset', null, PARAM_BOOL);
|
||||
|
||||
require_login();
|
||||
|
||||
$hassiteconfig = has_capability('moodle/site:config', context_system::instance());
|
||||
if ($hassiteconfig && moodle_needs_upgrading()) {
|
||||
redirect(new moodle_url('/admin/index.php'));
|
||||
}
|
||||
|
||||
$strmymoodle = get_string('myhome');
|
||||
|
||||
if (isguestuser()) { // Force them to see system default, no editing allowed
|
||||
|
Loading…
x
Reference in New Issue
Block a user