Skip to content

Commit

Permalink
MDL-50038 my: Redirect admin users to the notifications page when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Apr 29, 2015
1 parent 84ea226 commit 94e6f38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions my/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@

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
Expand Down

0 comments on commit 94e6f38

Please sign in to comment.