mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixing incorrect brackets
This commit is contained in:
parent
230a7377cf
commit
dcb292b246
@ -172,10 +172,9 @@ class Controller extends Extendable
|
||||
|
||||
// Not logged in, redirect to login screen or show ajax error
|
||||
if (!BackendAuth::check()) {
|
||||
return Request::ajax() {
|
||||
return Request::ajax()
|
||||
? Response::make(Lang::get('backend::lang.page.access_denied.label'), 403)
|
||||
: Redirect::guest(Backend::url('backend/auth'));
|
||||
}
|
||||
}
|
||||
|
||||
// Check his access groups against the page definition
|
||||
|
Loading…
x
Reference in New Issue
Block a user