Compare commits
1 Commits
38ff29a53e
...
b061c4d87d
| Author | SHA1 | Date | |
|---|---|---|---|
| b061c4d87d |
@ -15,7 +15,7 @@ class AuthenticateAdmin
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
if (auth()->user()->is_admin) {
|
||||
if (!auth()->user()->is_admin) {
|
||||
return response('Unauthorized', 401);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user