hasPermission('admin')) { throw new AuthorizationException(); } return $next($request); } }