Skip to content

Commit

Permalink
Use all reserved predicates in IsReservedPredicateChanged. (#3531)
Browse files Browse the repository at this point in the history
The method was not getting all the reserved predicates, making it return
true when a schema with ACL predicates was passed to an instance of
Dgraph with the ACL feature disabled.
  • Loading branch information
martinmr authored Jun 12, 2019
1 parent 67231ec commit 626e9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func IsReservedPredicateChanged(pred string, update *pb.SchemaUpdate) bool {
return false
}

initialSchema := InitialSchema()
initialSchema := CompleteInitialSchema()
for _, original := range initialSchema {
if original.Predicate != pred {
continue
Expand Down

0 comments on commit 626e9ec

Please sign in to comment.