i am using write relationships it is something lik...
# spicedb
a
i am using write relationships it is something like this https://play.authzed.com/s/lq7ufrF_TlF0/schema i am now trying to do var optionalCaveat *authzed.ContextualizedCaveat = nil if authzRelationship.Caveat != nil { optionalCaveat = &authzed.ContextualizedCaveat{ CaveatName: *authzRelationship.Caveat, } } relationship := &authzed.Relationship{ Resource: spiceDBObject, Relation: *authzRelationship.Relation, Subject: &authzed.SubjectReference{ Object: &authzed.ObjectReference{ ObjectType: subjectType, ObjectId: *authzRelationship.Subject.ID, }, }, OptionalCaveat: optionalCaveat, } and then call write relationships but the caveat does not get "clean" if it used to have a value and i want to set it to None now.
3 Views