diff --git a/modules/backend/classes/Controller.php b/modules/backend/classes/Controller.php index b95f7150c..8a842824e 100644 --- a/modules/backend/classes/Controller.php +++ b/modules/backend/classes/Controller.php @@ -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