@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.
@@ -3624,10 +3624,10 @@ function evaluateOperationAuthority(granted, required, resolveSpace) {
3624
3624
  const canonicalRequired = canonicalizeOperationCapabilities(required, resolveSpace);
3625
3625
  const missing = [];
3626
3626
  for (const requested of canonicalRequired) {
3627
- const covered = canonicalGranted.some(
3628
- (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space) && isCapabilitySubset([requested], [candidate]).subset
3627
+ const sameScope = canonicalGranted.filter(
3628
+ (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space)
3629
3629
  );
3630
- if (!covered) missing.push(requested);
3630
+ if (!isCapabilitySubset([requested], sameScope).subset) missing.push(requested);
3631
3631
  }
3632
3632
  return {
3633
3633
  satisfied: missing.length === 0,