{"action":"created","issue":{"url":"https://api.github.com/repos/holidayextras/jsonapi-store-mongodb/issues/27","repository_url":"https://api.github.com/repos/holidayextras/jsonapi-store-mongodb","labels_url":"https://api.github.com/repos/holidayextras/jsonapi-store-mongodb/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/holidayextras/jsonapi-store-mongodb/issues/27/comments","events_url":"https://api.github.com/repos/holidayextras/jsonapi-store-mongodb/issues/27/events","html_url":"https://github.com/holidayextras/jsonapi-store-mongodb/issues/27","id":150391848,"number":27,"title":"Unable to restrict access to a resource","user":{"login":"mahlu","id":12657961,"avatar_url":"https://avatars.githubusercontent.com/u/12657961?v=3","gravatar_id":"","url":"https://api.github.com/users/mahlu","html_url":"https://github.com/mahlu","followers_url":"https://api.github.com/users/mahlu/followers","following_url":"https://api.github.com/users/mahlu/following{/other_user}","gists_url":"https://api.github.com/users/mahlu/gists{/gist_id}","starred_url":"https://api.github.com/users/mahlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahlu/subscriptions","organizations_url":"https://api.github.com/users/mahlu/orgs","repos_url":"https://api.github.com/users/mahlu/repos","events_url":"https://api.github.com/users/mahlu/events{/privacy}","received_events_url":"https://api.github.com/users/mahlu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-22T14:55:25Z","updated_at":"2016-05-14T17:39:15Z","closed_at":"2016-05-14T17:39:15Z","body":"related to [#106](https://github.com/holidayextras/jsonapi-server/issues/106)\r\n\r\n`const MongoStore = require(\"jsonapi-store-mongodb\")`\r\n...\r\n`MongoStore.prototype = _.omit(MongoStore.prototype, ['create', 'update', 'delete'])`\r\n`module.exports = new MongoStore(db)`\r\n\r\n\r\nC:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\lib\\handlerEnforcer.js:29\r\n    original.apply(handlers, argsIn);\r\n            ^\r\n\r\nTypeError: Cannot read property 'apply' of undefined\r\n    at Object.create (C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\lib\\handlerEnforcer.js:29:13)\r\n    at async.waterfall.newResource (C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\lib\\routes\\create.js:46:33)\r\n    at fn (C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\node_modules\\async\\lib\\async.js:746:34)\r\n    at C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\node_modules\\async\\lib\\async.js:1213:16\r\n    at C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\node_modules\\async\\lib\\async.js:166:37\r\n    at C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\node_modules\\async\\lib\\async.js:706:43\r\n    at C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\node_modules\\async\\lib\\async.js:167:37\r\n    at Immediate._onImmediate (C:\\Users\\Mahlu\\desktop\\aggApp\\node_modules\\jsonapi-server\\node_modules\\async\\lib\\async.js:1206:34)\r\n    at processImmediate [as _immediateCallback] (timers.js:516:17)\r\n"},"comment":{"url":"https://api.github.com/repos/holidayextras/jsonapi-store-mongodb/issues/comments/219233252","html_url":"https://github.com/holidayextras/jsonapi-store-mongodb/issues/27#issuecomment-219233252","issue_url":"https://api.github.com/repos/holidayextras/jsonapi-store-mongodb/issues/27","id":219233252,"user":{"login":"theninj4","id":3055120,"avatar_url":"https://avatars.githubusercontent.com/u/3055120?v=3","gravatar_id":"","url":"https://api.github.com/users/theninj4","html_url":"https://github.com/theninj4","followers_url":"https://api.github.com/users/theninj4/followers","following_url":"https://api.github.com/users/theninj4/following{/other_user}","gists_url":"https://api.github.com/users/theninj4/gists{/gist_id}","starred_url":"https://api.github.com/users/theninj4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theninj4/subscriptions","organizations_url":"https://api.github.com/users/theninj4/orgs","repos_url":"https://api.github.com/users/theninj4/repos","events_url":"https://api.github.com/users/theninj4/events{/privacy}","received_events_url":"https://api.github.com/users/theninj4/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T17:39:15Z","updated_at":"2016-05-14T17:39:15Z","body":"I'll fix this up on the previous PR on jsonapi-server. Sorry for the confusion :("}}