Skip to content

Commit

Permalink
uses prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 6, 2015
1 parent 8878e70 commit 2294dca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Http/Middleware/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Input;
use JavaScript;
use Lang;
use Users;
use Session;

class Admin
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 2294dca

Please # to comment.