{"action":"created","issue":{"url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/158","repository_url":"https://api.github.com/repos/kuzzleio/kuzzle","labels_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/158/comments","events_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/158/events","html_url":"https://github.com/kuzzleio/kuzzle/pull/158","id":131422552,"number":158,"title":"Fix security","user":{"login":"AnthonySendra","id":6941117,"avatar_url":"https://avatars.githubusercontent.com/u/6941117?v=3","gravatar_id":"","url":"https://api.github.com/users/AnthonySendra","html_url":"https://github.com/AnthonySendra","followers_url":"https://api.github.com/users/AnthonySendra/followers","following_url":"https://api.github.com/users/AnthonySendra/following{/other_user}","gists_url":"https://api.github.com/users/AnthonySendra/gists{/gist_id}","starred_url":"https://api.github.com/users/AnthonySendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnthonySendra/subscriptions","organizations_url":"https://api.github.com/users/AnthonySendra/orgs","repos_url":"https://api.github.com/users/AnthonySendra/repos","events_url":"https://api.github.com/users/AnthonySendra/events{/privacy}","received_events_url":"https://api.github.com/users/AnthonySendra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-04T17:45:39Z","updated_at":"2016-02-04T17:45:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/158","html_url":"https://github.com/kuzzleio/kuzzle/pull/158","diff_url":"https://github.com/kuzzleio/kuzzle/pull/158.diff","patch_url":"https://github.com/kuzzleio/kuzzle/pull/158.patch"},"body":"**Bugfix**\r\n* Always return `_source` attribute (also in nested profile/role)\r\n* Return `NotFoundError` on `getUser`, `getProfile` and `getRole` when document with id doesn't exist\r\n* Store in memory (cache) profiles and roles\r\n* In functionnal testing, on `searchUsers`, `searchProfiles` and `searchRoles`, only check results for `world.idPrefix`. Avoid to mix with role/user/profil from real user data\r\n\r\n**Clean**\r\n* In `authController` use `getUser` for function `kuzzle.funnel.security.getCurrentUser` instead of reimplement the function"},"comment":{"url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/comments/179963940","html_url":"https://github.com/kuzzleio/kuzzle/pull/158#issuecomment-179963940","issue_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/158","id":179963940,"user":{"login":"stafyniaksacha","id":3911343,"avatar_url":"https://avatars.githubusercontent.com/u/3911343?v=3","gravatar_id":"","url":"https://api.github.com/users/stafyniaksacha","html_url":"https://github.com/stafyniaksacha","followers_url":"https://api.github.com/users/stafyniaksacha/followers","following_url":"https://api.github.com/users/stafyniaksacha/following{/other_user}","gists_url":"https://api.github.com/users/stafyniaksacha/gists{/gist_id}","starred_url":"https://api.github.com/users/stafyniaksacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stafyniaksacha/subscriptions","organizations_url":"https://api.github.com/users/stafyniaksacha/orgs","repos_url":"https://api.github.com/users/stafyniaksacha/repos","events_url":"https://api.github.com/users/stafyniaksacha/events{/privacy}","received_events_url":"https://api.github.com/users/stafyniaksacha/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T17:45:58Z","updated_at":"2016-02-04T17:45:58Z","body":"+1"}}