mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fixed permissions
This commit is contained in:
parent
dd89c52156
commit
e7c6bf1656
@ -17,7 +17,7 @@ const isModerator = rule()(async (parent, args, ctx, info) => {
|
||||
// Permissions
|
||||
const permissions = shield({
|
||||
Query: {
|
||||
statistics: not(isAuthenticated)
|
||||
statistics: isAdmin
|
||||
// fruits: and(isAuthenticated, or(isAdmin, isModerator)),
|
||||
// customers: and(isAuthenticated, isAdmin)
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user