made permissions accessible for the outside

This commit is contained in:
Grzegorz Leoniec 2018-11-21 15:38:47 +01:00
parent d5a0f03cc4
commit 8c72c88e59

View File

@ -16,7 +16,7 @@ const isModerator = rule()(async (parent, args, ctx, info) => {
// Permissions
const permissions = shield({
Query: {
statistics: isAdmin,
statistics: allow
// fruits: and(isAuthenticated, or(isAdmin, isModerator)),
// customers: and(isAuthenticated, isAdmin)
},