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