{"action":"created","comment":{"url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/comments/262433770","pull_request_review_id":210599707,"id":262433770,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2MjQzMzc3MA==","diff_hunk":"@@ -38,6 +38,9 @@ subscriptions.getAllSubscriptions = function (app, res, loggedInUserId, filter,\n         if (!userInfo.admin && !userInfo.approver) {\n             return utils.fail(res, 403, 'Not allowed. This is admin/approver land.');\n         }\n+        if(userInfo.approver) //add approver groups\n+            filter['api_group']=userInfo.groups.join('|');","path":"routes/subscriptions.js","position":5,"original_position":5,"commit_id":"8c9a97c5bbe2a0584beef021699374cada0bd2b8","original_commit_id":"8c9a97c5bbe2a0584beef021699374cada0bd2b8","user":{"login":"DonMartin76","id":7326883,"node_id":"MDQ6VXNlcjczMjY4ODM=","avatar_url":"https://avatars0.githubusercontent.com/u/7326883?v=4","gravatar_id":"","url":"https://api.github.com/users/DonMartin76","html_url":"https://github.com/DonMartin76","followers_url":"https://api.github.com/users/DonMartin76/followers","following_url":"https://api.github.com/users/DonMartin76/following{/other_user}","gists_url":"https://api.github.com/users/DonMartin76/gists{/gist_id}","starred_url":"https://api.github.com/users/DonMartin76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonMartin76/subscriptions","organizations_url":"https://api.github.com/users/DonMartin76/orgs","repos_url":"https://api.github.com/users/DonMartin76/repos","events_url":"https://api.github.com/users/DonMartin76/events{/privacy}","received_events_url":"https://api.github.com/users/DonMartin76/received_events","type":"User","site_admin":false},"body":"Above, below,... whatever, see `pg-utils.js`: https://github.com/apim-haufe-io/wicked.api/pull/20#discussion_r262430850","created_at":"2019-03-05T10:23:39Z","updated_at":"2019-03-05T10:23:39Z","html_url":"https://github.com/apim-haufe-io/wicked.api/pull/20#discussion_r262433770","pull_request_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/comments/262433770"},"html":{"href":"https://github.com/apim-haufe-io/wicked.api/pull/20#discussion_r262433770"},"pull_request":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20"}},"in_reply_to_id":262429026},"pull_request":{"url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20","id":257614572,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU3NjE0NTcy","html_url":"https://github.com/apim-haufe-io/wicked.api/pull/20","diff_url":"https://github.com/apim-haufe-io/wicked.api/pull/20.diff","patch_url":"https://github.com/apim-haufe-io/wicked.api/pull/20.patch","issue_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/20","number":20,"state":"open","locked":false,"title":"https://github.com/Haufe-Lexware/wicked.haufe.io/issues/176","user":{"login":"santokhsingh","id":9421117,"node_id":"MDQ6VXNlcjk0MjExMTc=","avatar_url":"https://avatars1.githubusercontent.com/u/9421117?v=4","gravatar_id":"","url":"https://api.github.com/users/santokhsingh","html_url":"https://github.com/santokhsingh","followers_url":"https://api.github.com/users/santokhsingh/followers","following_url":"https://api.github.com/users/santokhsingh/following{/other_user}","gists_url":"https://api.github.com/users/santokhsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/santokhsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santokhsingh/subscriptions","organizations_url":"https://api.github.com/users/santokhsingh/orgs","repos_url":"https://api.github.com/users/santokhsingh/repos","events_url":"https://api.github.com/users/santokhsingh/events{/privacy}","received_events_url":"https://api.github.com/users/santokhsingh/received_events","type":"User","site_admin":false},"body":"Implementation for https://github.com/Haufe-Lexware/wicked.haufe.io/issues/176\r\n","created_at":"2019-03-01T23:33:39Z","updated_at":"2019-03-05T10:23:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e191254e40d34bd61f1a9c05e084fc0ec11a9208","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20/commits","review_comments_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20/comments","review_comment_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/20/comments","statuses_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/statuses/8c9a97c5bbe2a0584beef021699374cada0bd2b8","head":{"label":"apim-haufe-io:feat/audit-report","ref":"feat/audit-report","sha":"8c9a97c5bbe2a0584beef021699374cada0bd2b8","user":{"login":"apim-haufe-io","id":26771679,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzcxNjc5","avatar_url":"https://avatars1.githubusercontent.com/u/26771679?v=4","gravatar_id":"","url":"https://api.github.com/users/apim-haufe-io","html_url":"https://github.com/apim-haufe-io","followers_url":"https://api.github.com/users/apim-haufe-io/followers","following_url":"https://api.github.com/users/apim-haufe-io/following{/other_user}","gists_url":"https://api.github.com/users/apim-haufe-io/gists{/gist_id}","starred_url":"https://api.github.com/users/apim-haufe-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apim-haufe-io/subscriptions","organizations_url":"https://api.github.com/users/apim-haufe-io/orgs","repos_url":"https://api.github.com/users/apim-haufe-io/repos","events_url":"https://api.github.com/users/apim-haufe-io/events{/privacy}","received_events_url":"https://api.github.com/users/apim-haufe-io/received_events","type":"Organization","site_admin":false},"repo":{"id":65023879,"node_id":"MDEwOlJlcG9zaXRvcnk2NTAyMzg3OQ==","name":"wicked.api","full_name":"apim-haufe-io/wicked.api","private":false,"owner":{"login":"apim-haufe-io","id":26771679,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzcxNjc5","avatar_url":"https://avatars1.githubusercontent.com/u/26771679?v=4","gravatar_id":"","url":"https://api.github.com/users/apim-haufe-io","html_url":"https://github.com/apim-haufe-io","followers_url":"https://api.github.com/users/apim-haufe-io/followers","following_url":"https://api.github.com/users/apim-haufe-io/following{/other_user}","gists_url":"https://api.github.com/users/apim-haufe-io/gists{/gist_id}","starred_url":"https://api.github.com/users/apim-haufe-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apim-haufe-io/subscriptions","organizations_url":"https://api.github.com/users/apim-haufe-io/orgs","repos_url":"https://api.github.com/users/apim-haufe-io/repos","events_url":"https://api.github.com/users/apim-haufe-io/events{/privacy}","received_events_url":"https://api.github.com/users/apim-haufe-io/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apim-haufe-io/wicked.api","description":"wicked.haufe.io - API Portal backend API service","fork":false,"url":"https://api.github.com/repos/apim-haufe-io/wicked.api","forks_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/forks","keys_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/teams","hooks_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/hooks","issue_events_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/events{/number}","events_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/events","assignees_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/assignees{/user}","branches_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/branches{/branch}","tags_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/tags","blobs_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/refs{/sha}","trees_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/statuses/{sha}","languages_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/languages","stargazers_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/stargazers","contributors_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/contributors","subscribers_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/subscribers","subscription_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/subscription","commits_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/commits{/sha}","git_commits_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/commits{/sha}","comments_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/comments{/number}","issue_comment_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/comments{/number}","contents_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/contents/{+path}","compare_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/merges","archive_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/downloads","issues_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues{/number}","pulls_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls{/number}","milestones_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/milestones{/number}","notifications_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/labels{/name}","releases_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/releases{/id}","deployments_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/deployments","created_at":"2016-08-05T14:13:34Z","updated_at":"2019-03-01T17:19:34Z","pushed_at":"2019-03-01T23:33:40Z","git_url":"git://github.com/apim-haufe-io/wicked.api.git","ssh_url":"git@github.com:apim-haufe-io/wicked.api.git","clone_url":"https://github.com/apim-haufe-io/wicked.api.git","svn_url":"https://github.com/apim-haufe-io/wicked.api","homepage":null,"size":866,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":5,"open_issues":2,"watchers":0,"default_branch":"next"}},"base":{"label":"apim-haufe-io:next","ref":"next","sha":"510d13946453011950167ee09605d3cf391b68f8","user":{"login":"apim-haufe-io","id":26771679,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzcxNjc5","avatar_url":"https://avatars1.githubusercontent.com/u/26771679?v=4","gravatar_id":"","url":"https://api.github.com/users/apim-haufe-io","html_url":"https://github.com/apim-haufe-io","followers_url":"https://api.github.com/users/apim-haufe-io/followers","following_url":"https://api.github.com/users/apim-haufe-io/following{/other_user}","gists_url":"https://api.github.com/users/apim-haufe-io/gists{/gist_id}","starred_url":"https://api.github.com/users/apim-haufe-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apim-haufe-io/subscriptions","organizations_url":"https://api.github.com/users/apim-haufe-io/orgs","repos_url":"https://api.github.com/users/apim-haufe-io/repos","events_url":"https://api.github.com/users/apim-haufe-io/events{/privacy}","received_events_url":"https://api.github.com/users/apim-haufe-io/received_events","type":"Organization","site_admin":false},"repo":{"id":65023879,"node_id":"MDEwOlJlcG9zaXRvcnk2NTAyMzg3OQ==","name":"wicked.api","full_name":"apim-haufe-io/wicked.api","private":false,"owner":{"login":"apim-haufe-io","id":26771679,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzcxNjc5","avatar_url":"https://avatars1.githubusercontent.com/u/26771679?v=4","gravatar_id":"","url":"https://api.github.com/users/apim-haufe-io","html_url":"https://github.com/apim-haufe-io","followers_url":"https://api.github.com/users/apim-haufe-io/followers","following_url":"https://api.github.com/users/apim-haufe-io/following{/other_user}","gists_url":"https://api.github.com/users/apim-haufe-io/gists{/gist_id}","starred_url":"https://api.github.com/users/apim-haufe-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apim-haufe-io/subscriptions","organizations_url":"https://api.github.com/users/apim-haufe-io/orgs","repos_url":"https://api.github.com/users/apim-haufe-io/repos","events_url":"https://api.github.com/users/apim-haufe-io/events{/privacy}","received_events_url":"https://api.github.com/users/apim-haufe-io/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apim-haufe-io/wicked.api","description":"wicked.haufe.io - API Portal backend API service","fork":false,"url":"https://api.github.com/repos/apim-haufe-io/wicked.api","forks_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/forks","keys_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/teams","hooks_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/hooks","issue_events_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/events{/number}","events_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/events","assignees_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/assignees{/user}","branches_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/branches{/branch}","tags_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/tags","blobs_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/refs{/sha}","trees_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/statuses/{sha}","languages_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/languages","stargazers_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/stargazers","contributors_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/contributors","subscribers_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/subscribers","subscription_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/subscription","commits_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/commits{/sha}","git_commits_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/git/commits{/sha}","comments_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/comments{/number}","issue_comment_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/comments{/number}","contents_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/contents/{+path}","compare_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/merges","archive_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/downloads","issues_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues{/number}","pulls_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls{/number}","milestones_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/milestones{/number}","notifications_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/labels{/name}","releases_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/releases{/id}","deployments_url":"https://api.github.com/repos/apim-haufe-io/wicked.api/deployments","created_at":"2016-08-05T14:13:34Z","updated_at":"2019-03-01T17:19:34Z","pushed_at":"2019-03-01T23:33:40Z","git_url":"git://github.com/apim-haufe-io/wicked.api.git","ssh_url":"git@github.com:apim-haufe-io/wicked.api.git","clone_url":"https://github.com/apim-haufe-io/wicked.api.git","svn_url":"https://github.com/apim-haufe-io/wicked.api","homepage":null,"size":866,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":5,"open_issues":2,"watchers":0,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20"},"html":{"href":"https://github.com/apim-haufe-io/wicked.api/pull/20"},"issue":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/20"},"comments":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/apim-haufe-io/wicked.api/statuses/8c9a97c5bbe2a0584beef021699374cada0bd2b8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"DonMartin76"}}