Skip to content

Commit

Permalink
Fix permission checking with id service method
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchrish committed Nov 25, 2016
1 parent f5e5ba8 commit 87f39be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/check-permissions.js
Expand Up @@ -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}`
]);
Expand Down

0 comments on commit 87f39be

Please sign in to comment.