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

Function shouldAllowAcls

edgraph/access.go:950–952  ·  view source on GitHub ↗

With shared instance enabled, we don't allow ACL operations from any of the non-galaxy namespace.

(ns uint64)

Source from the content-addressed store, hash-verified

948
949// With shared instance enabled, we don't allow ACL operations from any of the non-galaxy namespace.
950func shouldAllowAcls(ns uint64) bool {
951 return !x.Config.SharedInstance || ns == x.RootNamespace
952}
953
954// authorizeQuery authorizes the query using the aclCachePtr. It will silently drop all
955// unauthorized predicates from query.

Callers 4

LoginMethod · 0.85
authorizeMutationFunction · 0.85
authorizeQueryFunction · 0.85
authorizeSchemaQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected