feat: implement interactive map location picker and address search with autocomplete suggestions

This commit is contained in:
ramram1515
2026-06-29 11:54:39 +08:00
parent 63a2cfa5c0
commit 8638a80067
8 changed files with 520 additions and 40 deletions

View File

@@ -17,6 +17,10 @@ class EnsureUserHasRole
return ApiResponse::error('Unauthenticated', null, Response::HTTP_UNAUTHORIZED);
}
if ($user->role === \App\Models\User::ROLE_SUPER_ADMIN) {
return $next($request);
}
if (! in_array($user->role, $roles, true)) {
return ApiResponse::error('Forbidden — role not permitted', null, Response::HTTP_FORBIDDEN);
}