diff --git a/app/Http/Middleware/CheckPermissions.php b/app/Http/Middleware/CheckPermissions.php index 3e7280f24c..837f2dda42 100644 --- a/app/Http/Middleware/CheckPermissions.php +++ b/app/Http/Middleware/CheckPermissions.php @@ -23,8 +23,7 @@ class CheckPermissions */ public function handle($request, Closure $next, $section = null) { - Log::debug($section .' is the section'); - + if (Gate::allows($section)) { return $next($request); }