Permalink
Browse files

Fix permission checking with `id` service method

  • Loading branch information...
1 parent f5e5ba8 commit 87f39be5838edc6117313f40a8aaa0fb08640156 @mcchrish mcchrish committed Nov 25, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hooks/check-permissions.js
@@ -91,7 +91,7 @@ export default function checkPermissions (options = {}) {
// If we are requesting a resource with an ID add those
// as permissions checks.
if (!!id || id === 0) {
- perms = permissions.concat([
+ perms = perms.concat([
`${namespace}:*:${id}`,
`${namespace}:${method}:${id}`
]);

0 comments on commit 87f39be

Please sign in to comment.