MCPcopy Create free account
hub / github.com/Permify/permify / IsRelationComputed

Function IsRelationComputed

pkg/tuple/tuple.go:138–141  ·  view source on GitHub ↗

IsRelationComputed checks if a relation is computed or not

(relation string)

Source from the content-addressed store, hash-verified

136
137// IsRelationComputed checks if a relation is computed or not
138func IsRelationComputed(relation string) bool {
139 sp := strings.Split(relation, SEPARATOR)
140 return len(sp) == 1
141}
142
143// IsSubjectValid checks if a subject is valid or not
144func IsSubjectValid(subject *base.Subject) bool {

Callers 1

tuple_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected