@tinycloud/operations 0.5.0-beta.6 → 0.5.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4109,10 +4109,10 @@ function evaluateOperationAuthority(granted, required, resolveSpace2) {
4109
4109
  const canonicalRequired = canonicalizeOperationCapabilities(required, resolveSpace2);
4110
4110
  const missing = [];
4111
4111
  for (const requested of canonicalRequired) {
4112
- const covered = canonicalGranted.some(
4113
- (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space) && isCapabilitySubset([requested], [candidate]).subset
4112
+ const sameScope = canonicalGranted.filter(
4113
+ (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space)
4114
4114
  );
4115
- if (!covered) missing.push(requested);
4115
+ if (!isCapabilitySubset([requested], sameScope).subset) missing.push(requested);
4116
4116
  }
4117
4117
  return {
4118
4118
  satisfied: missing.length === 0,