Skip to content

Commit

Permalink
0014976: New file versions can be uploaded even if session is expired
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer-ilias committed Jul 28, 2015
1 parent ca66021 commit a4450f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Services/Authentication/classes/class.ilAuthBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,15 @@ protected function loginObserver($a_username,$a_auth)
if(!$user->getActive())
{
$this->status = AUTH_USER_INACTIVE;
$a_auth->logout();
return;
}

// time limit
if(!$user->checkTimeLimit())
{
$this->status = AUTH_USER_TIME_LIMIT_EXCEEDED;
$a_auth->logout();
return;
}

Expand All @@ -156,6 +158,7 @@ protected function loginObserver($a_username,$a_auth)
if (!preg_match("/^".$clientip."$/", $_SERVER["REMOTE_ADDR"]))
{
$this->status = AUTH_USER_WRONG_IP;
$a_auth->logout();
return;
}
}
Expand All @@ -165,6 +168,7 @@ protected function loginObserver($a_username,$a_auth)
ilObjUser::hasActiveSession($user_id))
{
$this->status = AUTH_USER_SIMULTANEOUS_LOGIN;
$a_auth->logout();
return;
}

Expand Down

0 comments on commit a4450f2

Please sign in to comment.