Updated plugin to use 1.3.1 of WebComponent.

Should fix downstream bugs with nginx.
This commit is contained in:
Abel Hoogeveen 2023-02-14 15:12:02 +01:00
parent 63ea659d5b
commit 5e19b1bd7a

View File

@ -187,7 +187,7 @@ class AdminPlugin implements iPluginHeader
Events::addListener([$this, 'layoutLoadEventListener'], 'layoutLoadEvent', Priority::HIGH);
Events::addListener([$this, 'verifyViewPermissions'], 'routerCallViewEvent', Priority::HIGH);
Events::addListener([$this, 'logViewNameAndIcon'], 'routerCallViewEvent', Priority::NORMAL);
if (class_exists("\FuzeWorks\Async\Tasks"))
{
// Mark async to be loaded
@ -208,7 +208,7 @@ class AdminPlugin implements iPluginHeader
$this->session = $this->authPlugin->sessions->start();
if ($this->session->user->id === "0")
{
$output->setHeader("Location: " . $this->authPlugin->getAuthenticationURL() . "/login?location=" . $this->getAdminURL());
$output->setLocation($this->authPlugin->getAuthenticationURL() . "/login?location=" . $this->getAdminURL());
return "";
}