Skip to content

Commit

Permalink
fix(acl): subscribe for the correct predicates (#7992)
Browse files Browse the repository at this point in the history
We were subscribing to the wrong predicates. Hence the ACL cache was not getting updated.
  • Loading branch information
NamanJain8 authored Aug 18, 2021
1 parent cb2f223 commit 1b75c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edgraph/access_ee.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ const queryAcls = `
`

var aclPrefixes = [][]byte{
x.PredicatePrefix(x.GalaxyAttr("dgraph.acl.permission")),
x.PredicatePrefix(x.GalaxyAttr("dgraph.acl.predicate")),
x.PredicatePrefix(x.GalaxyAttr("dgraph.rule.permission")),
x.PredicatePrefix(x.GalaxyAttr("dgraph.rule.predicate")),
x.PredicatePrefix(x.GalaxyAttr("dgraph.acl.rule")),
x.PredicatePrefix(x.GalaxyAttr("dgraph.user.group")),
x.PredicatePrefix(x.GalaxyAttr("dgraph.type.Group")),
Expand Down

0 comments on commit 1b75c01

Please sign in to comment.