Commit 5229cea5 authored by Nicolas Widart's avatar Nicolas Widart

Attaching the route filter in the routes file

parent 4d4a9f7e
...@@ -29,8 +29,6 @@ class UserController extends AdminBaseController ...@@ -29,8 +29,6 @@ class UserController extends AdminBaseController
{ {
parent::__construct(); parent::__construct();
$this->beforeFilter('permissions');
$this->permissions = $permissions; $this->permissions = $permissions;
$this->user = $user; $this->user = $user;
$this->role = $role; $this->role = $role;
......
<?php <?php
Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter'], function() Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin|permissions'], function()
{ {
Route::group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\User\Http\Controllers'], function() Route::group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\User\Http\Controllers'], function()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment