Commit 2ec0858e authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Allow admin users to actually access the admin panel :p

parent b6f1f2ab
...@@ -217,7 +217,7 @@ function auth_setup () { ...@@ -217,7 +217,7 @@ function auth_setup () {
$SESSION->add_err_msg(get_string('accessforbiddentoadminsection')); $SESSION->add_err_msg(get_string('accessforbiddentoadminsection'));
redirect(get_config('wwwroot')); redirect(get_config('wwwroot'));
} }
else { elseif (!$SESSION->get('admin')) {
// The user never was an admin // The user never was an admin
$SESSION->add_err_msg(get_string('accessforbiddentoadminsection')); $SESSION->add_err_msg(get_string('accessforbiddentoadminsection'));
redirect(get_config('wwwroot')); redirect(get_config('wwwroot'));
......
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