Skip to content

Commit

Permalink
Merge pull request #528 from 99designs/fix-todo-directive
Browse files Browse the repository at this point in the history
Fix Todo Example Directive
  • Loading branch information
Mathew Byrne authored Feb 4, 2019
2 parents 055fb4b + 5e1bcfa commit 78cfff4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions example/todo/todo.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ func New() Config {
// No admin for you!
return nil, nil
case RoleOwner:
// This is also available in context
if obj != graphql.GetResolverContext(ctx).Parent.Result {
return nil, fmt.Errorf("parent type mismatch")
}
ownable, isOwnable := obj.(Ownable)
if !isOwnable {
return nil, fmt.Errorf("obj cant be owned")
Expand Down

0 comments on commit 78cfff4

Please sign in to comment.