Skip to content

Commit fb0d4e1

Browse files
committed
Adjust error message in raw data permission check
1 parent b2df9f9 commit fb0d4e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/graph/resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func checkRawDataPermissionsForVehicle(ctx context.Context, vehicleDID string) e
5454
hasNonLocationHistory := slices.Contains(tok.Permissions, tokenclaims.PermissionGetNonLocationHistory)
5555
hasAllTimeData := hasLocationHistory && hasNonLocationHistory
5656
if !hasGetRawData && !hasAllTimeData {
57-
return fmt.Errorf("unauthorized: token does not have access to this vehicle")
57+
return fmt.Errorf("unauthorized: token does not have required permission for this vehicle operation")
5858
}
5959
return nil
6060
}

0 commit comments

Comments
 (0)