{"action":"created","comment":{"url":"https://api.github.com/repos/ucdavis/payments/pulls/comments/196865679","pull_request_review_id":130492374,"id":196865679,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Njg2NTY3OQ==","diff_hunk":"@@ -156,17 +141,11 @@ public FinancialAccountsController(ApplicationDbContext context, IFinancialServi\n             financialAccount.IsDefault = financialAccountModel.IsDefault;\r\n             financialAccount.TeamId = financialAccountModel.TeamId;\r\n \r\n-            var team = await _context.Teams\r\n-                .SingleOrDefaultAsync(m => m.Id == financialAccount.TeamId && m.IsActive);\r\n+            var team = await _context.Teams.SingleOrDefaultAsync(m => m.Id == financialAccount.TeamId && m.IsActive);\r","path":"src/Payments.Mvc/Controllers/FinancialAccountsController.cs","position":70,"original_position":70,"commit_id":"9c69833808a38b58e377697d4c03031fa902f85a","original_commit_id":"9c69833808a38b58e377697d4c03031fa902f85a","user":{"login":"jpknoll","id":214330,"node_id":"MDQ6VXNlcjIxNDMzMA==","avatar_url":"https://avatars0.githubusercontent.com/u/214330?v=4","gravatar_id":"","url":"https://api.github.com/users/jpknoll","html_url":"https://github.com/jpknoll","followers_url":"https://api.github.com/users/jpknoll/followers","following_url":"https://api.github.com/users/jpknoll/following{/other_user}","gists_url":"https://api.github.com/users/jpknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/jpknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpknoll/subscriptions","organizations_url":"https://api.github.com/users/jpknoll/orgs","repos_url":"https://api.github.com/users/jpknoll/repos","events_url":"https://api.github.com/users/jpknoll/events{/privacy}","received_events_url":"https://api.github.com/users/jpknoll/received_events","type":"User","site_admin":false},"body":"You should keep using TeamSlug here. Otherwise they can submit this request for a different team.","created_at":"2018-06-20T17:07:58Z","updated_at":"2018-06-20T17:13:31Z","html_url":"https://github.com/ucdavis/payments/pull/54#discussion_r196865679","pull_request_url":"https://api.github.com/repos/ucdavis/payments/pulls/54","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ucdavis/payments/pulls/comments/196865679"},"html":{"href":"https://github.com/ucdavis/payments/pull/54#discussion_r196865679"},"pull_request":{"href":"https://api.github.com/repos/ucdavis/payments/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/ucdavis/payments/pulls/54","id":195916640,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1OTE2NjQw","html_url":"https://github.com/ucdavis/payments/pull/54","diff_url":"https://github.com/ucdavis/payments/pull/54.diff","patch_url":"https://github.com/ucdavis/payments/pull/54.patch","issue_url":"https://api.github.com/repos/ucdavis/payments/issues/54","number":54,"state":"open","locked":false,"title":"Jcs/auth policy","user":{"login":"jSylvestre","id":469010,"node_id":"MDQ6VXNlcjQ2OTAxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/469010?v=4","gravatar_id":"","url":"https://api.github.com/users/jSylvestre","html_url":"https://github.com/jSylvestre","followers_url":"https://api.github.com/users/jSylvestre/followers","following_url":"https://api.github.com/users/jSylvestre/following{/other_user}","gists_url":"https://api.github.com/users/jSylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/jSylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jSylvestre/subscriptions","organizations_url":"https://api.github.com/users/jSylvestre/orgs","repos_url":"https://api.github.com/users/jSylvestre/repos","events_url":"https://api.github.com/users/jSylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/jSylvestre/received_events","type":"User","site_admin":false},"body":"Not sure if this is correct...\r\nAnd will need a link for admins to the teams index","created_at":"2018-06-19T18:22:49Z","updated_at":"2018-06-20T17:13:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"495fe884d50fb2b27581613c2b7afab287f1f4c1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ucdavis/payments/pulls/54/commits","review_comments_url":"https://api.github.com/repos/ucdavis/payments/pulls/54/comments","review_comment_url":"https://api.github.com/repos/ucdavis/payments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ucdavis/payments/issues/54/comments","statuses_url":"https://api.github.com/repos/ucdavis/payments/statuses/9c69833808a38b58e377697d4c03031fa902f85a","head":{"label":"ucdavis:JCS/AuthPolicy","ref":"JCS/AuthPolicy","sha":"9c69833808a38b58e377697d4c03031fa902f85a","user":{"login":"ucdavis","id":573450,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MzQ1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/573450?v=4","gravatar_id":"","url":"https://api.github.com/users/ucdavis","html_url":"https://github.com/ucdavis","followers_url":"https://api.github.com/users/ucdavis/followers","following_url":"https://api.github.com/users/ucdavis/following{/other_user}","gists_url":"https://api.github.com/users/ucdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/ucdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucdavis/subscriptions","organizations_url":"https://api.github.com/users/ucdavis/orgs","repos_url":"https://api.github.com/users/ucdavis/repos","events_url":"https://api.github.com/users/ucdavis/events{/privacy}","received_events_url":"https://api.github.com/users/ucdavis/received_events","type":"Organization","site_admin":false},"repo":{"id":73234458,"node_id":"MDEwOlJlcG9zaXRvcnk3MzIzNDQ1OA==","name":"payments","full_name":"ucdavis/payments","owner":{"login":"ucdavis","id":573450,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MzQ1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/573450?v=4","gravatar_id":"","url":"https://api.github.com/users/ucdavis","html_url":"https://github.com/ucdavis","followers_url":"https://api.github.com/users/ucdavis/followers","following_url":"https://api.github.com/users/ucdavis/following{/other_user}","gists_url":"https://api.github.com/users/ucdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/ucdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucdavis/subscriptions","organizations_url":"https://api.github.com/users/ucdavis/orgs","repos_url":"https://api.github.com/users/ucdavis/repos","events_url":"https://api.github.com/users/ucdavis/events{/privacy}","received_events_url":"https://api.github.com/users/ucdavis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucdavis/payments","description":"Accept and process credit card payments on campus","fork":false,"url":"https://api.github.com/repos/ucdavis/payments","forks_url":"https://api.github.com/repos/ucdavis/payments/forks","keys_url":"https://api.github.com/repos/ucdavis/payments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucdavis/payments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucdavis/payments/teams","hooks_url":"https://api.github.com/repos/ucdavis/payments/hooks","issue_events_url":"https://api.github.com/repos/ucdavis/payments/issues/events{/number}","events_url":"https://api.github.com/repos/ucdavis/payments/events","assignees_url":"https://api.github.com/repos/ucdavis/payments/assignees{/user}","branches_url":"https://api.github.com/repos/ucdavis/payments/branches{/branch}","tags_url":"https://api.github.com/repos/ucdavis/payments/tags","blobs_url":"https://api.github.com/repos/ucdavis/payments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucdavis/payments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucdavis/payments/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucdavis/payments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucdavis/payments/statuses/{sha}","languages_url":"https://api.github.com/repos/ucdavis/payments/languages","stargazers_url":"https://api.github.com/repos/ucdavis/payments/stargazers","contributors_url":"https://api.github.com/repos/ucdavis/payments/contributors","subscribers_url":"https://api.github.com/repos/ucdavis/payments/subscribers","subscription_url":"https://api.github.com/repos/ucdavis/payments/subscription","commits_url":"https://api.github.com/repos/ucdavis/payments/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucdavis/payments/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucdavis/payments/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucdavis/payments/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucdavis/payments/contents/{+path}","compare_url":"https://api.github.com/repos/ucdavis/payments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucdavis/payments/merges","archive_url":"https://api.github.com/repos/ucdavis/payments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucdavis/payments/downloads","issues_url":"https://api.github.com/repos/ucdavis/payments/issues{/number}","pulls_url":"https://api.github.com/repos/ucdavis/payments/pulls{/number}","milestones_url":"https://api.github.com/repos/ucdavis/payments/milestones{/number}","notifications_url":"https://api.github.com/repos/ucdavis/payments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucdavis/payments/labels{/name}","releases_url":"https://api.github.com/repos/ucdavis/payments/releases{/id}","deployments_url":"https://api.github.com/repos/ucdavis/payments/deployments","created_at":"2016-11-08T22:55:32Z","updated_at":"2018-06-19T20:54:07Z","pushed_at":"2018-06-20T16:40:58Z","git_url":"git://github.com/ucdavis/payments.git","ssh_url":"git@github.com:ucdavis/payments.git","clone_url":"https://github.com/ucdavis/payments.git","svn_url":"https://github.com/ucdavis/payments","homepage":null,"size":1146,"stargazers_count":0,"watchers_count":0,"language":"C#","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":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"ucdavis:master","ref":"master","sha":"8867c2c61a365d966329c6ffe5d7c97142a7afc4","user":{"login":"ucdavis","id":573450,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MzQ1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/573450?v=4","gravatar_id":"","url":"https://api.github.com/users/ucdavis","html_url":"https://github.com/ucdavis","followers_url":"https://api.github.com/users/ucdavis/followers","following_url":"https://api.github.com/users/ucdavis/following{/other_user}","gists_url":"https://api.github.com/users/ucdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/ucdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucdavis/subscriptions","organizations_url":"https://api.github.com/users/ucdavis/orgs","repos_url":"https://api.github.com/users/ucdavis/repos","events_url":"https://api.github.com/users/ucdavis/events{/privacy}","received_events_url":"https://api.github.com/users/ucdavis/received_events","type":"Organization","site_admin":false},"repo":{"id":73234458,"node_id":"MDEwOlJlcG9zaXRvcnk3MzIzNDQ1OA==","name":"payments","full_name":"ucdavis/payments","owner":{"login":"ucdavis","id":573450,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MzQ1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/573450?v=4","gravatar_id":"","url":"https://api.github.com/users/ucdavis","html_url":"https://github.com/ucdavis","followers_url":"https://api.github.com/users/ucdavis/followers","following_url":"https://api.github.com/users/ucdavis/following{/other_user}","gists_url":"https://api.github.com/users/ucdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/ucdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucdavis/subscriptions","organizations_url":"https://api.github.com/users/ucdavis/orgs","repos_url":"https://api.github.com/users/ucdavis/repos","events_url":"https://api.github.com/users/ucdavis/events{/privacy}","received_events_url":"https://api.github.com/users/ucdavis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucdavis/payments","description":"Accept and process credit card payments on campus","fork":false,"url":"https://api.github.com/repos/ucdavis/payments","forks_url":"https://api.github.com/repos/ucdavis/payments/forks","keys_url":"https://api.github.com/repos/ucdavis/payments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucdavis/payments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucdavis/payments/teams","hooks_url":"https://api.github.com/repos/ucdavis/payments/hooks","issue_events_url":"https://api.github.com/repos/ucdavis/payments/issues/events{/number}","events_url":"https://api.github.com/repos/ucdavis/payments/events","assignees_url":"https://api.github.com/repos/ucdavis/payments/assignees{/user}","branches_url":"https://api.github.com/repos/ucdavis/payments/branches{/branch}","tags_url":"https://api.github.com/repos/ucdavis/payments/tags","blobs_url":"https://api.github.com/repos/ucdavis/payments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucdavis/payments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucdavis/payments/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucdavis/payments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucdavis/payments/statuses/{sha}","languages_url":"https://api.github.com/repos/ucdavis/payments/languages","stargazers_url":"https://api.github.com/repos/ucdavis/payments/stargazers","contributors_url":"https://api.github.com/repos/ucdavis/payments/contributors","subscribers_url":"https://api.github.com/repos/ucdavis/payments/subscribers","subscription_url":"https://api.github.com/repos/ucdavis/payments/subscription","commits_url":"https://api.github.com/repos/ucdavis/payments/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucdavis/payments/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucdavis/payments/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucdavis/payments/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucdavis/payments/contents/{+path}","compare_url":"https://api.github.com/repos/ucdavis/payments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucdavis/payments/merges","archive_url":"https://api.github.com/repos/ucdavis/payments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucdavis/payments/downloads","issues_url":"https://api.github.com/repos/ucdavis/payments/issues{/number}","pulls_url":"https://api.github.com/repos/ucdavis/payments/pulls{/number}","milestones_url":"https://api.github.com/repos/ucdavis/payments/milestones{/number}","notifications_url":"https://api.github.com/repos/ucdavis/payments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucdavis/payments/labels{/name}","releases_url":"https://api.github.com/repos/ucdavis/payments/releases{/id}","deployments_url":"https://api.github.com/repos/ucdavis/payments/deployments","created_at":"2016-11-08T22:55:32Z","updated_at":"2018-06-19T20:54:07Z","pushed_at":"2018-06-20T16:40:58Z","git_url":"git://github.com/ucdavis/payments.git","ssh_url":"git@github.com:ucdavis/payments.git","clone_url":"https://github.com/ucdavis/payments.git","svn_url":"https://github.com/ucdavis/payments","homepage":null,"size":1146,"stargazers_count":0,"watchers_count":0,"language":"C#","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":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ucdavis/payments/pulls/54"},"html":{"href":"https://github.com/ucdavis/payments/pull/54"},"issue":{"href":"https://api.github.com/repos/ucdavis/payments/issues/54"},"comments":{"href":"https://api.github.com/repos/ucdavis/payments/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/ucdavis/payments/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/ucdavis/payments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ucdavis/payments/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/ucdavis/payments/statuses/9c69833808a38b58e377697d4c03031fa902f85a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jpknoll"}}