mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fixed isOwner permission
This commit is contained in:
parent
617a62a40c
commit
79749e6570
@ -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
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user