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

Function HasAccessToAllPreds

worker/acl_cache.go:181–184  ·  view source on GitHub ↗
(ns uint64, groups []string, operation *acl.Operation)

Source from the content-addressed store, hash-verified

179const accessAllPredicate = "dgraph.all"
180
181func HasAccessToAllPreds(ns uint64, groups []string, operation *acl.Operation) bool {
182 pred := x.NamespaceAttr(ns, accessAllPredicate)
183 return hasAccessToPred(pred, groups, operation)
184}
185
186func hasAccessToPred(pred string, groups []string, operation *acl.Operation) bool {
187 AclCachePtr.RLock()

Callers 2

authorizePredsFunction · 0.92
AuthorizePredicateMethod · 0.85

Calls 2

NamespaceAttrFunction · 0.92
hasAccessToPredFunction · 0.85

Tested by

no test coverage detected