Commit 6afde41b authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

If we're not installed, we can't be logged in.

parent ef83f1db
......@@ -194,6 +194,7 @@ function auth_setup () {
// If the system is not installed, let the user through in the hope that
// they can fix this little problem :)
if (!get_config('installed')) {
$SESSION->logout();
log_debug('system not installed, letting user through');
return;
}
......
......@@ -31,7 +31,7 @@ define('MENUITEM', 'home');
require('init.php');
// check to see if we're installed...
if (!get_config('version')) {
if (!get_config('installed')) {
redirect(get_config('wwwroot') . 'admin/index.php');
}
......
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