diff --git a/src/Http/Middleware/Admin.php b/src/Http/Middleware/Admin.php index 20f5a6ca..ac365c1a 100644 --- a/src/Http/Middleware/Admin.php +++ b/src/Http/Middleware/Admin.php @@ -7,6 +7,7 @@ use Input; use JavaScript; use Lang; +use Users; use Session; class Admin @@ -50,6 +51,10 @@ public function handle($request, Closure $next) 'locale' => config('app.locale'), ]); + // set curent user preferences to Config + $prefs = Users::getPreferences(); + Config::set('typicms.user', $prefs); + return $next($request); }