mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
auth
This commit is contained in:
@@ -22,7 +22,7 @@ class Role
|
||||
$roles = explode($this->delimetr, $roles);
|
||||
|
||||
if (!auth()->user()->hasRole($roles)) {
|
||||
return response()->json('',404);
|
||||
return response()->json(null,404);
|
||||
}
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user