Skip to content

Commit

Permalink
Prevent notice on the Upgrade screen when triggering 2.0.4-b5 refs ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Jan 27, 2014
1 parent 5dadac7 commit e012b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Login/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function authenticate()
|| $user['token_auth'] === $this->token_auth)
) {
$this->setTokenAuth($user['token_auth']);
$code = $user['superuser_access'] ? AuthResult::SUCCESS_SUPERUSER_AUTH_CODE : AuthResult::SUCCESS;
$code = !empty($user['superuser_access']) ? AuthResult::SUCCESS_SUPERUSER_AUTH_CODE : AuthResult::SUCCESS;

return new AuthResult($code, $this->login, $user['token_auth']);
}
Expand Down

0 comments on commit e012b22

Please sign in to comment.