feat: implement barangay and household management with associated tests
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Http\Responses\ApiResponse;
|
||||
use App\Models\User;
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -17,7 +18,7 @@ class EnsureUserHasRole
|
||||
return ApiResponse::error('Unauthenticated', null, Response::HTTP_UNAUTHORIZED);
|
||||
}
|
||||
|
||||
if ($user->role === \App\Models\User::ROLE_SUPER_ADMIN) {
|
||||
if ($user->role === User::ROLE_SUPER_ADMIN) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user