Commit 9c6339d5 authored by Nicolas Widart's avatar Nicolas Widart

Attaching the route filter in the routes file

parent 07b92751
......@@ -19,7 +19,6 @@ class ModulesController extends AdminBaseController
parent::__construct();
$this->moduleManager = $moduleManager;
$this->beforeFilter('permissions');
}
public function index()
......
......@@ -16,7 +16,6 @@ class WorkbenchController extends AdminBaseController
public function __construct()
{
parent::__construct();
$this->beforeFilter('permissions');
}
/**
......
<?php
Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter'], function()
Route::group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|permissions'], function()
{
Route::group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Workshop\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