Commit c868bc1f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix redirect for institutional admins with only 1 institution

parent 72b896cb
......@@ -50,7 +50,7 @@ if (!$USER->get('admin')) {
}
if (empty($institution) && count($USER->get('admininstitutions')) == 1) {
redirect(get_config('wwwroot') . 'admin/users/institutions.php?i='
. key($USER->get('institutions')));
. key($USER->get('admininstitutions')));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment