A free open source IT asset/license management system
Additional comments to clarify permissions middleware
snipe27427dd26b82
diff --git a/app/Http/Middleware/CheckPermissions.php b/app/Http/Middleware/CheckPermissions.phpindex 605f8a3154..3e7280f24c 100644--- a/app/Http/Middleware/CheckPermissions.php+++ b/app/Http/Middleware/CheckPermissions.php@@ -13,6 +13,9 @@ class CheckPermissions/*** Handle the ACLs for permissions.*+ * The $section variable is passed via the route middleware,+ * 'middleware' => [authorize:superadmin']+ ** @param \Illuminate\Http\Request $request* @param \Closure $next* @param string|null $section@@ -23,7 +26,6 @@ class CheckPermissionsLog::debug($section .' is the section');if (Gate::allows($section)) {-return $next($request);}