Skip to content

Commit

Permalink
Fix invalid action mapping using unknow action
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Mar 15, 2023
1 parent e239e40 commit eca2c57
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -64,7 +64,7 @@ const createPermissionChecker =

// Sanitized queries shortcuts
Object.keys(ACTIONS).forEach((action) => {
sanitizedQuery[action] = (query) => sanitizedQuery(query, action);
sanitizedQuery[action] = (query) => sanitizedQuery(query, ACTIONS[action]);
});

// Permission utils shortcuts
Expand Down

0 comments on commit eca2c57

Please sign in to comment.