IsRelationComputed checks if a relation is computed or not
(relation string)
| 136 | |
| 137 | // IsRelationComputed checks if a relation is computed or not |
| 138 | func 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 |
| 144 | func IsSubjectValid(subject *base.Subject) bool { |