Compare commits
1 Commits
b061c4d87d
...
38ff29a53e
| Author | SHA1 | Date | |
|---|---|---|---|
| 38ff29a53e |
@ -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