There was problem that is why we have updated the code.
All users were previously able to log in, which wasn’t ideal. When a site owner enables Coming Soon or Offline Mode, the purpose is to prevent regular users from accessing the website while it’s offline or under construction. However, this functionality didn’t work as intended.
We’ve updated the code to fix this issue.
If you prefer to keep the previous behavior, you can use the following code in the coming soon section of your index.php file.
Previous code
https://prnt.sc/9HNV7Ce3-Ur1
if (!$requestFromIframe)
{
$user = Factory::getUser();
if (!\is_null($this->params->get('comingsoon', null)) && $user->get('id') === 0)
{
header("Location: " . Route::_(Uri::root(true) . "/index.php?templateStyle={$template->id}&tmpl=comingsoon", false));
exit();
}
}
New code
if (!$requestFromIframe)
{
$user = Factory::getUser();
if (!\is_null($this->params->get('comingsoon', null)) && !$user->authorise('core.admin'))
{
header("Location: " . Route::_(Uri::root(true) . "/index.php?templateStyle={$template->id}&tmpl=comingsoon", false));
exit();
}
}