Skip to content

Commit

Permalink
Have the check warning only apply to relations, not permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschorr committed Mar 10, 2022
1 parent 00b262b commit 2d45533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/graph/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (cc *ConcurrentChecker) Check(ctx context.Context, req ValidatedCheckReques
var directFunc ReduceableCheckFunc

// TODO(jschorr): Turn into an error once v0 API has been removed.
if relation.GetTypeInformation() == nil {
if relation.GetTypeInformation() == nil && relation.GetUsersetRewrite() == nil {
log.Ctx(ctx).Warn().Str("relation", relation.Name).Msg("Found relation without type information. Please switch to using schema. This will be an error in the future!")
}

Expand Down

0 comments on commit 2d45533

Please sign in to comment.