$cookieData = $this->getParsedCookieData();
// No refresh is needed if the timestep matches up.
- if ($cookieData['timestep'] === $this->getCookieTimestep()) {
+ if (isset($cookieData['timestep']) && $cookieData['timestep'] === $this->getCookieTimestep()) {
return;
}
throw new \BadMethodCallException('The current user is a guest.');
}
+ // Workaround during WCFSetup.
+ if (PACKAGE_ID) {
+ return false;
+ }
+
// Reauthentication for third party authentication is not supported.
if ($this->getUser()->authData) {
return false;