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

Function IsDirectEntityReference

pkg/dsl/ast/statements.go:216–218  ·  view source on GitHub ↗

IsDirectEntityReference returns true if the RelationTypeStatement is a direct entity reference.

(s RelationTypeStatement)

Source from the content-addressed store, hash-verified

214
215// IsDirectEntityReference returns true if the RelationTypeStatement is a direct entity reference.
216func IsDirectEntityReference(s RelationTypeStatement) bool {
217 return s.Relation.Literal == ""
218}
219
220// PermissionStatement represents an permission statement, which consists of an permission name and an optional expression statement.
221// It implements the Statement interface.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected