@@ -27,7 +27,8 @@ class LuRoute {
$permissions_string = implode(",", $permissions);
$middleware_string = [];
foreach (array_merge($this->middleware, $middleware) as $mid) {
- $middleware_string[] = $mid . ":" . $permissions_string;
+
+ $middleware_string[] = $mid . (strpos($mid, ":") !== false ? "," : ":") . $permissions_string;
}
return [function() use($business, $method, $permissions)
{