Move backend.page.beforeDisplay after auth check
Fixes #3215. Related: 47cd204686 (diff-6cdbb280344f40eebe758cf8e8e5f7d9)
This commit is contained in:
parent
4a6e0e1e0e
commit
c7a3354dfd
|
|
@ -183,13 +183,6 @@ class Controller extends Extendable
|
|||
return Redirect::secure(Request::path());
|
||||
}
|
||||
|
||||
/*
|
||||
* Extensibility
|
||||
*/
|
||||
if ($event = $this->fireSystemEvent('backend.page.beforeDisplay', [$action, $params])) {
|
||||
return $event;
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine if this request is a public action.
|
||||
*/
|
||||
|
|
@ -217,6 +210,13 @@ class Controller extends Extendable
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Extensibility
|
||||
*/
|
||||
if ($event = $this->fireSystemEvent('backend.page.beforeDisplay', [$action, $params])) {
|
||||
return $event;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the admin preference locale
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue