MCPcopy
hub / github.com/dgraph-io/dgraph / IsAclPredicate

Function IsAclPredicate

x/keys.go:869–872  ·  view source on GitHub ↗

IsAclPredicate returns true if the predicate is in the list of reserved predicates for the ACL feature.

(pred string)

Source from the content-addressed store, hash-verified

867// IsAclPredicate returns true if the predicate is in the list of reserved
868// predicates for the ACL feature.
869func IsAclPredicate(pred string) bool {
870 _, ok := aclPredicateMap[strings.ToLower(pred)]
871 return ok
872}
873
874// StarAllPredicates returns the complete list of pre-defined predicates that needs to
875// be expanded when * is given as a predicate.

Callers 5

isAclPredMutationFunction · 0.92
authorizeMutationFunction · 0.92
blockedPredsFunction · 0.92
AuthorizePredicateMethod · 0.92
IsPreDefinedPredicateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected