{"action":"created","comment":{"url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/comments/173612002","pull_request_review_id":102840498,"id":173612002,"diff_hunk":"@@ -342,16 +342,27 @@ function updateLineStatus(req, res) {\n                 });\n             } else {\n                 try {\n-                    var msg = await line.updateStatus(req.body.status);\n-                    res.status(200).json({\n-                          \"message\": \"Successfully updated line with status \" + req.body.status\n-                    });\n-                } catch (err) {\n-                    console.log(err);\n-                    res.status(400).json({\n-                        \"message\": err\n-                    });\n-                }\n+                    if (req.body.status === 'startrecruiter' || req.body.status === 'finishrecruiter' && (user.user_type !== 'recruiter' || user.user_type !== 'admin')) {","path":"src/api/controllers/lines.js","position":32,"original_position":32,"commit_id":"3ed5089b445f44c685c981f2dbfae172e0a158fb","original_commit_id":"3ed5089b445f44c685c981f2dbfae172e0a158fb","user":{"login":"brianwang9100","id":7969184,"avatar_url":"https://avatars2.githubusercontent.com/u/7969184?v=4","gravatar_id":"","url":"https://api.github.com/users/brianwang9100","html_url":"https://github.com/brianwang9100","followers_url":"https://api.github.com/users/brianwang9100/followers","following_url":"https://api.github.com/users/brianwang9100/following{/other_user}","gists_url":"https://api.github.com/users/brianwang9100/gists{/gist_id}","starred_url":"https://api.github.com/users/brianwang9100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianwang9100/subscriptions","organizations_url":"https://api.github.com/users/brianwang9100/orgs","repos_url":"https://api.github.com/users/brianwang9100/repos","events_url":"https://api.github.com/users/brianwang9100/events{/privacy}","received_events_url":"https://api.github.com/users/brianwang9100/received_events","type":"User","site_admin":false},"body":"put parentheses around req.body.status === 'startrecruiter' || req.body.status === 'finishrecruiter'","created_at":"2018-03-10T05:01:29Z","updated_at":"2018-03-10T05:18:25Z","html_url":"https://github.com/wdjg/coccareerfairapp-server/pull/139#discussion_r173612002","pull_request_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/comments/173612002"},"html":{"href":"https://github.com/wdjg/coccareerfairapp-server/pull/139#discussion_r173612002"},"pull_request":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139","id":174153627,"html_url":"https://github.com/wdjg/coccareerfairapp-server/pull/139","diff_url":"https://github.com/wdjg/coccareerfairapp-server/pull/139.diff","patch_url":"https://github.com/wdjg/coccareerfairapp-server/pull/139.patch","issue_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/139","number":139,"state":"open","locked":false,"title":"Verify user types for patch status","user":{"login":"kopaka7","id":15273701,"avatar_url":"https://avatars0.githubusercontent.com/u/15273701?v=4","gravatar_id":"","url":"https://api.github.com/users/kopaka7","html_url":"https://github.com/kopaka7","followers_url":"https://api.github.com/users/kopaka7/followers","following_url":"https://api.github.com/users/kopaka7/following{/other_user}","gists_url":"https://api.github.com/users/kopaka7/gists{/gist_id}","starred_url":"https://api.github.com/users/kopaka7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopaka7/subscriptions","organizations_url":"https://api.github.com/users/kopaka7/orgs","repos_url":"https://api.github.com/users/kopaka7/repos","events_url":"https://api.github.com/users/kopaka7/events{/privacy}","received_events_url":"https://api.github.com/users/kopaka7/received_events","type":"User","site_admin":false},"body":"Added checks for recruiter or admin for start and finish recruiter states, added check for user type student for preline and inline.","created_at":"2018-03-10T04:51:53Z","updated_at":"2018-03-10T05:18:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"kopaka7","id":15273701,"avatar_url":"https://avatars0.githubusercontent.com/u/15273701?v=4","gravatar_id":"","url":"https://api.github.com/users/kopaka7","html_url":"https://github.com/kopaka7","followers_url":"https://api.github.com/users/kopaka7/followers","following_url":"https://api.github.com/users/kopaka7/following{/other_user}","gists_url":"https://api.github.com/users/kopaka7/gists{/gist_id}","starred_url":"https://api.github.com/users/kopaka7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopaka7/subscriptions","organizations_url":"https://api.github.com/users/kopaka7/orgs","repos_url":"https://api.github.com/users/kopaka7/repos","events_url":"https://api.github.com/users/kopaka7/events{/privacy}","received_events_url":"https://api.github.com/users/kopaka7/received_events","type":"User","site_admin":false},"assignees":[{"login":"kopaka7","id":15273701,"avatar_url":"https://avatars0.githubusercontent.com/u/15273701?v=4","gravatar_id":"","url":"https://api.github.com/users/kopaka7","html_url":"https://github.com/kopaka7","followers_url":"https://api.github.com/users/kopaka7/followers","following_url":"https://api.github.com/users/kopaka7/following{/other_user}","gists_url":"https://api.github.com/users/kopaka7/gists{/gist_id}","starred_url":"https://api.github.com/users/kopaka7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopaka7/subscriptions","organizations_url":"https://api.github.com/users/kopaka7/orgs","repos_url":"https://api.github.com/users/kopaka7/repos","events_url":"https://api.github.com/users/kopaka7/events{/privacy}","received_events_url":"https://api.github.com/users/kopaka7/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"jhayes45","id":35344365,"avatar_url":"https://avatars3.githubusercontent.com/u/35344365?v=4","gravatar_id":"","url":"https://api.github.com/users/jhayes45","html_url":"https://github.com/jhayes45","followers_url":"https://api.github.com/users/jhayes45/followers","following_url":"https://api.github.com/users/jhayes45/following{/other_user}","gists_url":"https://api.github.com/users/jhayes45/gists{/gist_id}","starred_url":"https://api.github.com/users/jhayes45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhayes45/subscriptions","organizations_url":"https://api.github.com/users/jhayes45/orgs","repos_url":"https://api.github.com/users/jhayes45/repos","events_url":"https://api.github.com/users/jhayes45/events{/privacy}","received_events_url":"https://api.github.com/users/jhayes45/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139/commits","review_comments_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139/comments","review_comment_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/139/comments","statuses_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/statuses/3ed5089b445f44c685c981f2dbfae172e0a158fb","head":{"label":"wdjg:issue-85-verify-user_types-for-PATCH-/lines/-id/status","ref":"issue-85-verify-user_types-for-PATCH-/lines/-id/status","sha":"3ed5089b445f44c685c981f2dbfae172e0a158fb","user":{"login":"wdjg","id":35708109,"avatar_url":"https://avatars3.githubusercontent.com/u/35708109?v=4","gravatar_id":"","url":"https://api.github.com/users/wdjg","html_url":"https://github.com/wdjg","followers_url":"https://api.github.com/users/wdjg/followers","following_url":"https://api.github.com/users/wdjg/following{/other_user}","gists_url":"https://api.github.com/users/wdjg/gists{/gist_id}","starred_url":"https://api.github.com/users/wdjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdjg/subscriptions","organizations_url":"https://api.github.com/users/wdjg/orgs","repos_url":"https://api.github.com/users/wdjg/repos","events_url":"https://api.github.com/users/wdjg/events{/privacy}","received_events_url":"https://api.github.com/users/wdjg/received_events","type":"Organization","site_admin":false},"repo":{"id":118518890,"name":"coccareerfairapp-server","full_name":"wdjg/coccareerfairapp-server","owner":{"login":"wdjg","id":35708109,"avatar_url":"https://avatars3.githubusercontent.com/u/35708109?v=4","gravatar_id":"","url":"https://api.github.com/users/wdjg","html_url":"https://github.com/wdjg","followers_url":"https://api.github.com/users/wdjg/followers","following_url":"https://api.github.com/users/wdjg/following{/other_user}","gists_url":"https://api.github.com/users/wdjg/gists{/gist_id}","starred_url":"https://api.github.com/users/wdjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdjg/subscriptions","organizations_url":"https://api.github.com/users/wdjg/orgs","repos_url":"https://api.github.com/users/wdjg/repos","events_url":"https://api.github.com/users/wdjg/events{/privacy}","received_events_url":"https://api.github.com/users/wdjg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wdjg/coccareerfairapp-server","description":"Backend for CoC Career Fair written in Javascript on the MERN stack","fork":false,"url":"https://api.github.com/repos/wdjg/coccareerfairapp-server","forks_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/forks","keys_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/teams","hooks_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/hooks","issue_events_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/events{/number}","events_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/events","assignees_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/assignees{/user}","branches_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/branches{/branch}","tags_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/tags","blobs_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/statuses/{sha}","languages_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/languages","stargazers_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/stargazers","contributors_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/contributors","subscribers_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/subscribers","subscription_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/subscription","commits_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/contents/{+path}","compare_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/merges","archive_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/downloads","issues_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues{/number}","pulls_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls{/number}","milestones_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/milestones{/number}","notifications_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/labels{/name}","releases_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/releases{/id}","deployments_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/deployments","created_at":"2018-01-22T21:41:21Z","updated_at":"2018-03-03T01:30:53Z","pushed_at":"2018-03-10T05:07:59Z","git_url":"git://github.com/wdjg/coccareerfairapp-server.git","ssh_url":"git@github.com:wdjg/coccareerfairapp-server.git","clone_url":"https://github.com/wdjg/coccareerfairapp-server.git","svn_url":"https://github.com/wdjg/coccareerfairapp-server","homepage":"","size":7141,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":39,"license":null,"forks":0,"open_issues":39,"watchers":1,"default_branch":"master"}},"base":{"label":"wdjg:master","ref":"master","sha":"65270a09b73d3926f1de17679c4b7e5ab06f7c81","user":{"login":"wdjg","id":35708109,"avatar_url":"https://avatars3.githubusercontent.com/u/35708109?v=4","gravatar_id":"","url":"https://api.github.com/users/wdjg","html_url":"https://github.com/wdjg","followers_url":"https://api.github.com/users/wdjg/followers","following_url":"https://api.github.com/users/wdjg/following{/other_user}","gists_url":"https://api.github.com/users/wdjg/gists{/gist_id}","starred_url":"https://api.github.com/users/wdjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdjg/subscriptions","organizations_url":"https://api.github.com/users/wdjg/orgs","repos_url":"https://api.github.com/users/wdjg/repos","events_url":"https://api.github.com/users/wdjg/events{/privacy}","received_events_url":"https://api.github.com/users/wdjg/received_events","type":"Organization","site_admin":false},"repo":{"id":118518890,"name":"coccareerfairapp-server","full_name":"wdjg/coccareerfairapp-server","owner":{"login":"wdjg","id":35708109,"avatar_url":"https://avatars3.githubusercontent.com/u/35708109?v=4","gravatar_id":"","url":"https://api.github.com/users/wdjg","html_url":"https://github.com/wdjg","followers_url":"https://api.github.com/users/wdjg/followers","following_url":"https://api.github.com/users/wdjg/following{/other_user}","gists_url":"https://api.github.com/users/wdjg/gists{/gist_id}","starred_url":"https://api.github.com/users/wdjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdjg/subscriptions","organizations_url":"https://api.github.com/users/wdjg/orgs","repos_url":"https://api.github.com/users/wdjg/repos","events_url":"https://api.github.com/users/wdjg/events{/privacy}","received_events_url":"https://api.github.com/users/wdjg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wdjg/coccareerfairapp-server","description":"Backend for CoC Career Fair written in Javascript on the MERN stack","fork":false,"url":"https://api.github.com/repos/wdjg/coccareerfairapp-server","forks_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/forks","keys_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/teams","hooks_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/hooks","issue_events_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/events{/number}","events_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/events","assignees_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/assignees{/user}","branches_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/branches{/branch}","tags_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/tags","blobs_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/statuses/{sha}","languages_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/languages","stargazers_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/stargazers","contributors_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/contributors","subscribers_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/subscribers","subscription_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/subscription","commits_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/contents/{+path}","compare_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/merges","archive_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/downloads","issues_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues{/number}","pulls_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls{/number}","milestones_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/milestones{/number}","notifications_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/labels{/name}","releases_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/releases{/id}","deployments_url":"https://api.github.com/repos/wdjg/coccareerfairapp-server/deployments","created_at":"2018-01-22T21:41:21Z","updated_at":"2018-03-03T01:30:53Z","pushed_at":"2018-03-10T05:07:59Z","git_url":"git://github.com/wdjg/coccareerfairapp-server.git","ssh_url":"git@github.com:wdjg/coccareerfairapp-server.git","clone_url":"https://github.com/wdjg/coccareerfairapp-server.git","svn_url":"https://github.com/wdjg/coccareerfairapp-server","homepage":"","size":7141,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":39,"license":null,"forks":0,"open_issues":39,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139"},"html":{"href":"https://github.com/wdjg/coccareerfairapp-server/pull/139"},"issue":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/139"},"comments":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/wdjg/coccareerfairapp-server/statuses/3ed5089b445f44c685c981f2dbfae172e0a158fb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"brianwang9100"}}