Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e4629b62
Commit
e4629b62
authored
Sep 29, 2008
by
Richard Mansfield
Browse files
Log admin out when disablelogin set on upgrade
parent
658fbdf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/init.php
View file @
e4629b62
...
...
@@ -206,8 +206,13 @@ if (!defined('INSTALLER')) {
}
if
(
get_config
(
'siteclosed'
))
{
if
(
$USER
->
admin
&&
!
defined
(
'INSTALLER'
))
{
redirect
(
'/admin/upgrade.php'
);
if
(
$USER
->
admin
)
{
if
(
get_config
(
'disablelogin'
))
{
$USER
->
logout
();
}
if
(
!
defined
(
'INSTALLER'
))
{
redirect
(
'/admin/upgrade.php'
);
}
}
if
(
!
$USER
->
admin
)
{
if
(
$USER
->
is_logged_in
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment