You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// An empty Relation is always a bug in the caller: it must be either tuple.Ellipsis
453
+
// for direct membership or a specific subrelation string.
454
+
ifsubject.Relation=="" {
455
+
returnnil, spiceerrors.MustBugf("IterResources called with empty subject.Relation for %s:%s; caller must use tuple.Ellipsis or a specific subrelation", subject.ObjectType, subject.ObjectID)
456
+
}
457
+
452
458
// Check if subject relation matches what this iterator expects.
453
-
// Both the schema's expected subrelation and the query's subject relation must match exactly.
454
-
// Ellipsis is a specific relation value, not a wildcard.
459
+
// When the schema uses ellipsis ("..."), callers should pass tuple.Ellipsis — the
460
+
// MustBugf above ensures "" never reaches here — but we match on the schema value directly.
0 commit comments