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
// Invariant: wildcard subjects in the datastore are always stored with the ellipsis
78
+
// relation. The "*" is only ever an ObjectID; "type:*#relation" is syntactically
79
+
// invalid and cannot be written. Any caller passing a non-ellipsis relation here
80
+
// would cause us to query with the wrong relation filter and return a false negative.
81
+
ifsubject.Relation!=tuple.Ellipsis {
82
+
returnnil, spiceerrors.MustBugf("checkWildcardImpl called with non-ellipsis subject relation %q for subject %s:%s; wildcard subjects are always stored with ellipsis relation", subject.Relation, subject.ObjectType, subject.ObjectID)
83
+
}
84
+
77
85
// Query the datastore for wildcard relationships (subject ObjectID = "*")
// Invariant: wildcard subjects in the datastore are always stored with the ellipsis
404
+
// relation. The "*" is only ever an ObjectID; "type:*#relation" is syntactically
405
+
// invalid and cannot be written. Any caller passing a non-ellipsis relation here
406
+
// would cause us to query with the wrong relation filter and return a false negative.
407
+
ifsubject.Relation!=tuple.Ellipsis {
408
+
returnnil, spiceerrors.MustBugf("iterResourcesWildcardImpl called with non-ellipsis subject relation %q for subject %s:%s; wildcard subjects are always stored with ellipsis relation", subject.Relation, subject.ObjectType, subject.ObjectID)
0 commit comments