{"action":"created","comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/38262212","id":38262212,"diff_hunk":"@@ -2,12 +2,12 @@ Meteor.methods\n \tdeleteUser: (userId) ->\n \t\tif not Meteor.userId()\n \t\t\tthrow new Meteor.Error('invalid-user', \"[methods] deleteUser -> Invalid user\")\n+\n+\t\tuser = Meteor.users.findOne userId\n \t\t\n-\t\tuser = Meteor.users.findOne Meteor.userId()\n \t\tunless user?.admin is true","path":"server/methods/deleteUser.coffee","position":null,"original_position":8,"commit_id":"3538f9e1d55799dc377446c6684bed0a3af554bb","original_commit_id":"804b2e0daa4c48d8d71a2e28b8d58bd1e5b14a1a","user":{"login":"geekgonecrazy","id":51996,"avatar_url":"https://avatars.githubusercontent.com/u/51996?v=3","gravatar_id":"","url":"https://api.github.com/users/geekgonecrazy","html_url":"https://github.com/geekgonecrazy","followers_url":"https://api.github.com/users/geekgonecrazy/followers","following_url":"https://api.github.com/users/geekgonecrazy/following{/other_user}","gists_url":"https://api.github.com/users/geekgonecrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/geekgonecrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekgonecrazy/subscriptions","organizations_url":"https://api.github.com/users/geekgonecrazy/orgs","repos_url":"https://api.github.com/users/geekgonecrazy/repos","events_url":"https://api.github.com/users/geekgonecrazy/events{/privacy}","received_events_url":"https://api.github.com/users/geekgonecrazy/received_events","type":"User","site_admin":false},"body":"yeah my bad.  Forgot this is an action being done only by the admin.  Reverted","created_at":"2015-08-29T14:00:32Z","updated_at":"2015-08-29T14:00:32Z","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/621#discussion_r38262212","pull_request_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621","_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/38262212"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/621#discussion_r38262212"},"pull_request":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621"}}},"pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621","id":43683211,"html_url":"https://github.com/RocketChat/Rocket.Chat/pull/621","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/621.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/621.patch","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/621","number":621,"state":"open","locked":false,"title":"Added checks to updateMessage and deleteMessage","user":{"login":"geekgonecrazy","id":51996,"avatar_url":"https://avatars.githubusercontent.com/u/51996?v=3","gravatar_id":"","url":"https://api.github.com/users/geekgonecrazy","html_url":"https://github.com/geekgonecrazy","followers_url":"https://api.github.com/users/geekgonecrazy/followers","following_url":"https://api.github.com/users/geekgonecrazy/following{/other_user}","gists_url":"https://api.github.com/users/geekgonecrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/geekgonecrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekgonecrazy/subscriptions","organizations_url":"https://api.github.com/users/geekgonecrazy/orgs","repos_url":"https://api.github.com/users/geekgonecrazy/repos","events_url":"https://api.github.com/users/geekgonecrazy/events{/privacy}","received_events_url":"https://api.github.com/users/geekgonecrazy/received_events","type":"User","site_admin":false},"body":"Only two I could find that still needed it.","created_at":"2015-08-29T00:00:57Z","updated_at":"2015-08-29T14:00:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b690b17baced07719c8bb60a086a7ef76406e2c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621/commits","review_comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621/comments","review_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/621/comments","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/3538f9e1d55799dc377446c6684bed0a3af554bb","head":{"label":"geekgonecrazy:permission-checks","ref":"permission-checks","sha":"3538f9e1d55799dc377446c6684bed0a3af554bb","user":{"login":"geekgonecrazy","id":51996,"avatar_url":"https://avatars.githubusercontent.com/u/51996?v=3","gravatar_id":"","url":"https://api.github.com/users/geekgonecrazy","html_url":"https://github.com/geekgonecrazy","followers_url":"https://api.github.com/users/geekgonecrazy/followers","following_url":"https://api.github.com/users/geekgonecrazy/following{/other_user}","gists_url":"https://api.github.com/users/geekgonecrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/geekgonecrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekgonecrazy/subscriptions","organizations_url":"https://api.github.com/users/geekgonecrazy/orgs","repos_url":"https://api.github.com/users/geekgonecrazy/repos","events_url":"https://api.github.com/users/geekgonecrazy/events{/privacy}","received_events_url":"https://api.github.com/users/geekgonecrazy/received_events","type":"User","site_admin":false},"repo":{"id":41398944,"name":"Rocket.Chat","full_name":"geekgonecrazy/Rocket.Chat","owner":{"login":"geekgonecrazy","id":51996,"avatar_url":"https://avatars.githubusercontent.com/u/51996?v=3","gravatar_id":"","url":"https://api.github.com/users/geekgonecrazy","html_url":"https://github.com/geekgonecrazy","followers_url":"https://api.github.com/users/geekgonecrazy/followers","following_url":"https://api.github.com/users/geekgonecrazy/following{/other_user}","gists_url":"https://api.github.com/users/geekgonecrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/geekgonecrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekgonecrazy/subscriptions","organizations_url":"https://api.github.com/users/geekgonecrazy/orgs","repos_url":"https://api.github.com/users/geekgonecrazy/repos","events_url":"https://api.github.com/users/geekgonecrazy/events{/privacy}","received_events_url":"https://api.github.com/users/geekgonecrazy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geekgonecrazy/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":true,"url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat","forks_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/geekgonecrazy/Rocket.Chat/releases{/id}","created_at":"2015-08-26T02:10:30Z","updated_at":"2015-08-27T02:38:07Z","pushed_at":"2015-08-29T13:59:39Z","git_url":"git://github.com/geekgonecrazy/Rocket.Chat.git","ssh_url":"git@github.com:geekgonecrazy/Rocket.Chat.git","clone_url":"https://github.com/geekgonecrazy/Rocket.Chat.git","svn_url":"https://github.com/geekgonecrazy/Rocket.Chat","homepage":"https://rocket.chat/","size":19750,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RocketChat:master","ref":"master","sha":"cff12564470289e014f56690624a312674ceef63","user":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","owner":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","created_at":"2015-05-19T07:36:09Z","updated_at":"2015-08-29T13:31:31Z","pushed_at":"2015-08-29T13:59:40Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":23802,"stargazers_count":3060,"watchers_count":3060,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":416,"mirror_url":null,"open_issues_count":137,"forks":416,"open_issues":137,"watchers":3060,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/621"},"issue":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/621"},"comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/3538f9e1d55799dc377446c6684bed0a3af554bb"}}}}