Updated plugin to use 1.3.1 of WebComponent.
Should fix downstream bugs with nginx.
This commit is contained in:
parent
63ea659d5b
commit
5e19b1bd7a
@ -187,7 +187,7 @@ class AdminPlugin implements iPluginHeader
|
|||||||
Events::addListener([$this, 'layoutLoadEventListener'], 'layoutLoadEvent', Priority::HIGH);
|
Events::addListener([$this, 'layoutLoadEventListener'], 'layoutLoadEvent', Priority::HIGH);
|
||||||
Events::addListener([$this, 'verifyViewPermissions'], 'routerCallViewEvent', Priority::HIGH);
|
Events::addListener([$this, 'verifyViewPermissions'], 'routerCallViewEvent', Priority::HIGH);
|
||||||
Events::addListener([$this, 'logViewNameAndIcon'], 'routerCallViewEvent', Priority::NORMAL);
|
Events::addListener([$this, 'logViewNameAndIcon'], 'routerCallViewEvent', Priority::NORMAL);
|
||||||
|
|
||||||
if (class_exists("\FuzeWorks\Async\Tasks"))
|
if (class_exists("\FuzeWorks\Async\Tasks"))
|
||||||
{
|
{
|
||||||
// Mark async to be loaded
|
// Mark async to be loaded
|
||||||
@ -208,7 +208,7 @@ class AdminPlugin implements iPluginHeader
|
|||||||
$this->session = $this->authPlugin->sessions->start();
|
$this->session = $this->authPlugin->sessions->start();
|
||||||
if ($this->session->user->id === "0")
|
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 "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user