{"action":"created","comment":{"url":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments/81867246","pull_request_review_id":2816185,"id":81867246,"diff_hunk":"@@ -0,0 +1,53 @@\n+import { Meteor } from 'meteor/meteor'\n+\n+import { Applications } from '/imports/collections/applications.js';\n+import { Comments } from '/imports/collections/comments.js';\n+\n+import { AccountsCommon } from 'meteor/accounts-base';\n+\n+export const submitComment = new ValidatedMethod({\n+  name: 'comment.submit',\n+\n+  validate: new SimpleSchema({\n+    applicationId: {\n+      type: String,\n+    },\n+    comment: {\n+      type: String,\n+    },\n+  }).validator(),\n+\n+  run({ applicationId, comment }) {\n+    if (!Roles.userIsInRole(this.userId, ['committee', 'admin'])) {\n+      throw new Meteor.Error('Coments.methods.submit.not-allowed', 'Must be committee to do this.');\n+    }\n+\n+    let user = Meteor.users.findOne(this.userId);\n+\n+    Comments.insert({\n+      userId: this.userId,\n+      email: user.emails[0].address,","path":"app/imports/api/methods/commentsMethods.js","position":29,"original_position":29,"commit_id":"78ff1a38e102cf2084d91c75092eac64a086ddb9","original_commit_id":"78ff1a38e102cf2084d91c75092eac64a086ddb9","user":{"login":"mixcas","id":1994425,"avatar_url":"https://avatars.githubusercontent.com/u/1994425?v=3","gravatar_id":"","url":"https://api.github.com/users/mixcas","html_url":"https://github.com/mixcas","followers_url":"https://api.github.com/users/mixcas/followers","following_url":"https://api.github.com/users/mixcas/following{/other_user}","gists_url":"https://api.github.com/users/mixcas/gists{/gist_id}","starred_url":"https://api.github.com/users/mixcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixcas/subscriptions","organizations_url":"https://api.github.com/users/mixcas/orgs","repos_url":"https://api.github.com/users/mixcas/repos","events_url":"https://api.github.com/users/mixcas/events{/privacy}","received_events_url":"https://api.github.com/users/mixcas/received_events","type":"User","site_admin":false},"body":"i think we should add the `Name` field and add that to this part in a diff branch","created_at":"2016-10-04T22:25:04Z","updated_at":"2016-10-04T22:25:04Z","html_url":"https://github.com/interglobalvision/applaya/pull/96#discussion_r81867246","pull_request_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments/81867246"},"html":{"href":"https://github.com/interglobalvision/applaya/pull/96#discussion_r81867246"},"pull_request":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/interglobalvision/applaya/pulls/96","id":86837113,"html_url":"https://github.com/interglobalvision/applaya/pull/96","diff_url":"https://github.com/interglobalvision/applaya/pull/96.diff","patch_url":"https://github.com/interglobalvision/applaya/pull/96.patch","issue_url":"https://api.github.com/repos/interglobalvision/applaya/issues/96","number":96,"state":"open","locked":false,"title":"add comments","user":{"login":"mixcas","id":1994425,"avatar_url":"https://avatars.githubusercontent.com/u/1994425?v=3","gravatar_id":"","url":"https://api.github.com/users/mixcas","html_url":"https://github.com/mixcas","followers_url":"https://api.github.com/users/mixcas/followers","following_url":"https://api.github.com/users/mixcas/following{/other_user}","gists_url":"https://api.github.com/users/mixcas/gists{/gist_id}","starred_url":"https://api.github.com/users/mixcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixcas/subscriptions","organizations_url":"https://api.github.com/users/mixcas/orgs","repos_url":"https://api.github.com/users/mixcas/repos","events_url":"https://api.github.com/users/mixcas/events{/privacy}","received_events_url":"https://api.github.com/users/mixcas/received_events","type":"User","site_admin":false},"body":"This needs styling, @mikeyrayvon  :)","created_at":"2016-09-26T23:23:02Z","updated_at":"2016-10-04T22:25:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77f41dde84a0bd2a85705e11eafcac675457fccb","assignee":{"login":"mixcas","id":1994425,"avatar_url":"https://avatars.githubusercontent.com/u/1994425?v=3","gravatar_id":"","url":"https://api.github.com/users/mixcas","html_url":"https://github.com/mixcas","followers_url":"https://api.github.com/users/mixcas/followers","following_url":"https://api.github.com/users/mixcas/following{/other_user}","gists_url":"https://api.github.com/users/mixcas/gists{/gist_id}","starred_url":"https://api.github.com/users/mixcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixcas/subscriptions","organizations_url":"https://api.github.com/users/mixcas/orgs","repos_url":"https://api.github.com/users/mixcas/repos","events_url":"https://api.github.com/users/mixcas/events{/privacy}","received_events_url":"https://api.github.com/users/mixcas/received_events","type":"User","site_admin":false},"assignees":[{"login":"mixcas","id":1994425,"avatar_url":"https://avatars.githubusercontent.com/u/1994425?v=3","gravatar_id":"","url":"https://api.github.com/users/mixcas","html_url":"https://github.com/mixcas","followers_url":"https://api.github.com/users/mixcas/followers","following_url":"https://api.github.com/users/mixcas/following{/other_user}","gists_url":"https://api.github.com/users/mixcas/gists{/gist_id}","starred_url":"https://api.github.com/users/mixcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixcas/subscriptions","organizations_url":"https://api.github.com/users/mixcas/orgs","repos_url":"https://api.github.com/users/mixcas/repos","events_url":"https://api.github.com/users/mixcas/events{/privacy}","received_events_url":"https://api.github.com/users/mixcas/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/96/commits","review_comments_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/96/comments","review_comment_url":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments{/number}","comments_url":"https://api.github.com/repos/interglobalvision/applaya/issues/96/comments","statuses_url":"https://api.github.com/repos/interglobalvision/applaya/statuses/78ff1a38e102cf2084d91c75092eac64a086ddb9","head":{"label":"interglobalvision:feat-comments","ref":"feat-comments","sha":"78ff1a38e102cf2084d91c75092eac64a086ddb9","user":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"repo":{"id":59867441,"name":"applaya","full_name":"interglobalvision/applaya","owner":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/interglobalvision/applaya","description":"Life's a beach, then you apply.","fork":false,"url":"https://api.github.com/repos/interglobalvision/applaya","forks_url":"https://api.github.com/repos/interglobalvision/applaya/forks","keys_url":"https://api.github.com/repos/interglobalvision/applaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/interglobalvision/applaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/interglobalvision/applaya/teams","hooks_url":"https://api.github.com/repos/interglobalvision/applaya/hooks","issue_events_url":"https://api.github.com/repos/interglobalvision/applaya/issues/events{/number}","events_url":"https://api.github.com/repos/interglobalvision/applaya/events","assignees_url":"https://api.github.com/repos/interglobalvision/applaya/assignees{/user}","branches_url":"https://api.github.com/repos/interglobalvision/applaya/branches{/branch}","tags_url":"https://api.github.com/repos/interglobalvision/applaya/tags","blobs_url":"https://api.github.com/repos/interglobalvision/applaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/interglobalvision/applaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/interglobalvision/applaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/interglobalvision/applaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/interglobalvision/applaya/statuses/{sha}","languages_url":"https://api.github.com/repos/interglobalvision/applaya/languages","stargazers_url":"https://api.github.com/repos/interglobalvision/applaya/stargazers","contributors_url":"https://api.github.com/repos/interglobalvision/applaya/contributors","subscribers_url":"https://api.github.com/repos/interglobalvision/applaya/subscribers","subscription_url":"https://api.github.com/repos/interglobalvision/applaya/subscription","commits_url":"https://api.github.com/repos/interglobalvision/applaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/interglobalvision/applaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/interglobalvision/applaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/interglobalvision/applaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/interglobalvision/applaya/contents/{+path}","compare_url":"https://api.github.com/repos/interglobalvision/applaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/interglobalvision/applaya/merges","archive_url":"https://api.github.com/repos/interglobalvision/applaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/interglobalvision/applaya/downloads","issues_url":"https://api.github.com/repos/interglobalvision/applaya/issues{/number}","pulls_url":"https://api.github.com/repos/interglobalvision/applaya/pulls{/number}","milestones_url":"https://api.github.com/repos/interglobalvision/applaya/milestones{/number}","notifications_url":"https://api.github.com/repos/interglobalvision/applaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/interglobalvision/applaya/labels{/name}","releases_url":"https://api.github.com/repos/interglobalvision/applaya/releases{/id}","deployments_url":"https://api.github.com/repos/interglobalvision/applaya/deployments","created_at":"2016-05-27T23:00:31Z","updated_at":"2016-06-28T21:58:40Z","pushed_at":"2016-09-29T01:37:29Z","git_url":"git://github.com/interglobalvision/applaya.git","ssh_url":"git@github.com:interglobalvision/applaya.git","clone_url":"https://github.com/interglobalvision/applaya.git","svn_url":"https://github.com/interglobalvision/applaya","homepage":"","size":1513,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"interglobalvision:master","ref":"master","sha":"63c0ce9f2d6ebcffbe42c29e3f7b55424da2ae6e","user":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"repo":{"id":59867441,"name":"applaya","full_name":"interglobalvision/applaya","owner":{"login":"interglobalvision","id":6844994,"avatar_url":"https://avatars.githubusercontent.com/u/6844994?v=3","gravatar_id":"","url":"https://api.github.com/users/interglobalvision","html_url":"https://github.com/interglobalvision","followers_url":"https://api.github.com/users/interglobalvision/followers","following_url":"https://api.github.com/users/interglobalvision/following{/other_user}","gists_url":"https://api.github.com/users/interglobalvision/gists{/gist_id}","starred_url":"https://api.github.com/users/interglobalvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interglobalvision/subscriptions","organizations_url":"https://api.github.com/users/interglobalvision/orgs","repos_url":"https://api.github.com/users/interglobalvision/repos","events_url":"https://api.github.com/users/interglobalvision/events{/privacy}","received_events_url":"https://api.github.com/users/interglobalvision/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/interglobalvision/applaya","description":"Life's a beach, then you apply.","fork":false,"url":"https://api.github.com/repos/interglobalvision/applaya","forks_url":"https://api.github.com/repos/interglobalvision/applaya/forks","keys_url":"https://api.github.com/repos/interglobalvision/applaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/interglobalvision/applaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/interglobalvision/applaya/teams","hooks_url":"https://api.github.com/repos/interglobalvision/applaya/hooks","issue_events_url":"https://api.github.com/repos/interglobalvision/applaya/issues/events{/number}","events_url":"https://api.github.com/repos/interglobalvision/applaya/events","assignees_url":"https://api.github.com/repos/interglobalvision/applaya/assignees{/user}","branches_url":"https://api.github.com/repos/interglobalvision/applaya/branches{/branch}","tags_url":"https://api.github.com/repos/interglobalvision/applaya/tags","blobs_url":"https://api.github.com/repos/interglobalvision/applaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/interglobalvision/applaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/interglobalvision/applaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/interglobalvision/applaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/interglobalvision/applaya/statuses/{sha}","languages_url":"https://api.github.com/repos/interglobalvision/applaya/languages","stargazers_url":"https://api.github.com/repos/interglobalvision/applaya/stargazers","contributors_url":"https://api.github.com/repos/interglobalvision/applaya/contributors","subscribers_url":"https://api.github.com/repos/interglobalvision/applaya/subscribers","subscription_url":"https://api.github.com/repos/interglobalvision/applaya/subscription","commits_url":"https://api.github.com/repos/interglobalvision/applaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/interglobalvision/applaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/interglobalvision/applaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/interglobalvision/applaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/interglobalvision/applaya/contents/{+path}","compare_url":"https://api.github.com/repos/interglobalvision/applaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/interglobalvision/applaya/merges","archive_url":"https://api.github.com/repos/interglobalvision/applaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/interglobalvision/applaya/downloads","issues_url":"https://api.github.com/repos/interglobalvision/applaya/issues{/number}","pulls_url":"https://api.github.com/repos/interglobalvision/applaya/pulls{/number}","milestones_url":"https://api.github.com/repos/interglobalvision/applaya/milestones{/number}","notifications_url":"https://api.github.com/repos/interglobalvision/applaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/interglobalvision/applaya/labels{/name}","releases_url":"https://api.github.com/repos/interglobalvision/applaya/releases{/id}","deployments_url":"https://api.github.com/repos/interglobalvision/applaya/deployments","created_at":"2016-05-27T23:00:31Z","updated_at":"2016-06-28T21:58:40Z","pushed_at":"2016-09-29T01:37:29Z","git_url":"git://github.com/interglobalvision/applaya.git","ssh_url":"git@github.com:interglobalvision/applaya.git","clone_url":"https://github.com/interglobalvision/applaya.git","svn_url":"https://github.com/interglobalvision/applaya","homepage":"","size":1513,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/96"},"html":{"href":"https://github.com/interglobalvision/applaya/pull/96"},"issue":{"href":"https://api.github.com/repos/interglobalvision/applaya/issues/96"},"comments":{"href":"https://api.github.com/repos/interglobalvision/applaya/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/interglobalvision/applaya/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/interglobalvision/applaya/statuses/78ff1a38e102cf2084d91c75092eac64a086ddb9"}}}}
{"actor":{"display_login":"mixcas"}}