IsDirectEntityReference returns true if the RelationTypeStatement is a direct entity reference.
(s RelationTypeStatement)
| 214 | |
| 215 | // IsDirectEntityReference returns true if the RelationTypeStatement is a direct entity reference. |
| 216 | func 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. |
no outgoing calls
no test coverage detected