We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2df9f9 commit fb0d4e1Copy full SHA for fb0d4e1
1 file changed
internal/graph/resolver.go
@@ -54,7 +54,7 @@ func checkRawDataPermissionsForVehicle(ctx context.Context, vehicleDID string) e
54
hasNonLocationHistory := slices.Contains(tok.Permissions, tokenclaims.PermissionGetNonLocationHistory)
55
hasAllTimeData := hasLocationHistory && hasNonLocationHistory
56
if !hasGetRawData && !hasAllTimeData {
57
- return fmt.Errorf("unauthorized: token does not have access to this vehicle")
+ return fmt.Errorf("unauthorized: token does not have required permission for this vehicle operation")
58
}
59
return nil
60
0 commit comments