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

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.
@@ -3654,10 +3654,10 @@ function evaluateOperationAuthority(granted, required, resolveSpace) {
3654
3654
  const canonicalRequired = canonicalizeOperationCapabilities(required, resolveSpace);
3655
3655
  const missing = [];
3656
3656
  for (const requested of canonicalRequired) {
3657
- const covered = canonicalGranted.some(
3658
- (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space) && isCapabilitySubset([requested], [candidate]).subset
3657
+ const sameScope = canonicalGranted.filter(
3658
+ (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space)
3659
3659
  );
3660
- if (!covered) missing.push(requested);
3660
+ if (!isCapabilitySubset([requested], sameScope).subset) missing.push(requested);
3661
3661
  }
3662
3662
  return {
3663
3663
  satisfied: missing.length === 0,