Move backend.page.beforeDisplay after auth check

Fixes #3215. Related: 47cd204686 (diff-6cdbb280344f40eebe758cf8e8e5f7d9)
This commit is contained in:
Luke Towers 2017-10-31 08:45:11 -06:00 committed by GitHub
parent 4a6e0e1e0e
commit c7a3354dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -183,13 +183,6 @@ class Controller extends Extendable
return Redirect::secure(Request::path()); 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. * 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 * Set the admin preference locale
*/ */