{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/1149","labels_url":"https://api.github.com/repos/meanjs/mean/issues/1149/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/1149/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/1149/events","html_url":"https://github.com/meanjs/mean/pull/1149","id":127203745,"number":1149,"title":"fix(articles): Article edit/delete validation","user":{"login":"mleanos","id":5613734,"avatar_url":"https://avatars.githubusercontent.com/u/5613734?v=3","gravatar_id":"","url":"https://api.github.com/users/mleanos","html_url":"https://github.com/mleanos","followers_url":"https://api.github.com/users/mleanos/followers","following_url":"https://api.github.com/users/mleanos/following{/other_user}","gists_url":"https://api.github.com/users/mleanos/gists{/gist_id}","starred_url":"https://api.github.com/users/mleanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleanos/subscriptions","organizations_url":"https://api.github.com/users/mleanos/orgs","repos_url":"https://api.github.com/users/mleanos/repos","events_url":"https://api.github.com/users/mleanos/events{/privacy}","received_events_url":"https://api.github.com/users/mleanos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/meanjs/mean/milestones/6","html_url":"https://github.com/meanjs/mean/milestones/0.5.0","labels_url":"https://api.github.com/repos/meanjs/mean/milestones/6/labels","id":1213421,"number":6,"title":"0.5.0","description":"","creator":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":65,"state":"open","created_at":"2015-07-17T18:54:42Z","updated_at":"2016-01-30T20:04:51Z","due_on":null,"closed_at":null},"comments":26,"created_at":"2016-01-18T11:06:20Z","updated_at":"2016-01-30T21:36:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/meanjs/mean/pulls/1149","html_url":"https://github.com/meanjs/mean/pull/1149","diff_url":"https://github.com/meanjs/mean/pull/1149.diff","patch_url":"https://github.com/meanjs/mean/pull/1149.patch"},"body":"Adds validation of the owner of an Article to fix a bug with the current\r\nvalidation logic, in the edit Article view.\r\n\r\nSince we're not storing the User's `_id` field in the client-side User\r\nobject any longer, the validation of whether or not the current User is\r\nthe owner of an Article is broken.\r\n\r\nThese changes fix the issue, by adding a property to the vm in the\r\narticles client controller; `vm.isOwner`. This property will determine\r\nwhether or not the edit & delete buttons are available to the currently\r\nlogged in User when viewing an Article.\r\n\r\nAdded a method to the Users client service, for retrieving the currently\r\nlogged in User data; `Users.me` performs a GET request to\r\n*api/users/me*.\r\n\r\nFixes #1146"},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/177308488","html_url":"https://github.com/meanjs/mean/pull/1149#issuecomment-177308488","issue_url":"https://api.github.com/repos/meanjs/mean/issues/1149","id":177308488,"user":{"login":"mleanos","id":5613734,"avatar_url":"https://avatars.githubusercontent.com/u/5613734?v=3","gravatar_id":"","url":"https://api.github.com/users/mleanos","html_url":"https://github.com/mleanos","followers_url":"https://api.github.com/users/mleanos/followers","following_url":"https://api.github.com/users/mleanos/following{/other_user}","gists_url":"https://api.github.com/users/mleanos/gists{/gist_id}","starred_url":"https://api.github.com/users/mleanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleanos/subscriptions","organizations_url":"https://api.github.com/users/mleanos/orgs","repos_url":"https://api.github.com/users/mleanos/repos","events_url":"https://api.github.com/users/mleanos/events{/privacy}","received_events_url":"https://api.github.com/users/mleanos/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T21:36:01Z","updated_at":"2016-01-30T21:36:01Z","body":"I'm travelling right now, and don't have access to my dev machine atm. I'll continue to research right now though. \r\n\r\nDo you have any ideas? I see the issue you started on Angular's repo on this subject. What was your resolutuon?\r\n"}}