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

Function blockedPreds

edgraph/access.go:939–947  ·  view source on GitHub ↗
(preds []string)

Source from the content-addressed store, hash-verified

937}
938
939func blockedPreds(preds []string) map[string]struct{} {
940 blocked := make(map[string]struct{})
941 for _, pred := range preds {
942 if x.IsAclPredicate(pred) {
943 blocked[pred] = struct{}{}
944 }
945 }
946 return blocked
947}
948
949// With shared instance enabled, we don't allow ACL operations from any of the non-galaxy namespace.
950func shouldAllowAcls(ns uint64) bool {

Callers 2

authorizeQueryFunction · 0.85
authorizeSchemaQueryFunction · 0.85

Calls 1

IsAclPredicateFunction · 0.92

Tested by

no test coverage detected