Fixed isOwner permission

This commit is contained in:
Grzegorz Leoniec 2019-01-14 17:07:20 +01:00
parent 617a62a40c
commit 79749e6570
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -14,7 +14,7 @@ const isModerator = rule()(async (parent, args, ctx, info) => {
})
*/
const isOwner = rule()(async (parent, args, ctx, info) => {
const isOwner = rule({ cache: 'no_cache' })(async (parent, args, ctx, info) => {
return ctx.user.id === parent.id
})