Skip to content

Commit

Permalink
modified: app/Http/Middleware/Authorize.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniNick committed Jul 17, 2023
1 parent c7554c1 commit 411bea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/Authorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Authorize
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, $role,$role2,$role3 = "-1")
public function handle($request, Closure $next, $role,$role2="-1",$role3 = "-1")
{
if(Auth::user()->hasRole($role,$role2,$role3)){
return $next($request);
Expand Down

0 comments on commit 411bea4

Please sign in to comment.