@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.
@@ -329,10 +329,10 @@ function evaluateOperationAuthority(granted, required, resolveSpace) {
329
329
  const canonicalRequired = canonicalizeOperationCapabilities(required, resolveSpace);
330
330
  const missing = [];
331
331
  for (const requested of canonicalRequired) {
332
- const covered = canonicalGranted.some(
333
- (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space) && isCapabilitySubset([requested], [candidate]).subset
332
+ const sameScope = canonicalGranted.filter(
333
+ (candidate) => candidate.service === requested.service && operationSpacesEqual(candidate.space, requested.space)
334
334
  );
335
- if (!covered) missing.push(requested);
335
+ if (!isCapabilitySubset([requested], sameScope).subset) missing.push(requested);
336
336
  }
337
337
  return {
338
338
  satisfied: missing.length === 0,