{"action":"created","comment":{"url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments/32322200","id":32322200,"diff_hunk":"@@ -207,12 +207,12 @@ class Engine < ::Rails::Engine\n       end\n \n       send(:define_method, :user_has_time_entry_permissions?) do\n-        current_user_allowed_to(:view_time_entries) ||\n-          (current_user_allowed_to(:view_own_time_entries) && represented.costs_enabled?)\n+        current_user_allowed_to(:view_time_entries, context: represented.project) ||\n+          (current_user_allowed_to(:view_own_time_entries, context: represented.project) && represented.costs_enabled?)","path":"lib/open_project/costs/engine.rb","position":36,"original_position":36,"commit_id":"fea7c111aefa25bdb435af0c562711100687958a","original_commit_id":"fea7c111aefa25bdb435af0c562711100687958a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [119/80]","created_at":"2015-06-12T14:51:04Z","updated_at":"2015-06-12T14:51:04Z","html_url":"https://github.com/finnlabs/openproject-costs/pull/140#discussion_r32322200","pull_request_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments/32322200"},"html":{"href":"https://github.com/finnlabs/openproject-costs/pull/140#discussion_r32322200"},"pull_request":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140","id":37571449,"html_url":"https://github.com/finnlabs/openproject-costs/pull/140","diff_url":"https://github.com/finnlabs/openproject-costs/pull/140.diff","patch_url":"https://github.com/finnlabs/openproject-costs/pull/140.patch","issue_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/140","number":140,"state":"open","locked":false,"title":"adapt extension of api to changes in core","user":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"body":"Adapts API extension by this plugin to the changes in the core. Please see\r\n\r\nhttps://github.com/opf/openproject/pull/3127","created_at":"2015-06-12T14:50:59Z","updated_at":"2015-06-12T14:51:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f9aa19cc962640f3dc4e94bd3607a245973ccde","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140/commits","review_comments_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140/comments","review_comment_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/140/comments","statuses_url":"https://api.github.com/repos/finnlabs/openproject-costs/statuses/fea7c111aefa25bdb435af0c562711100687958a","head":{"label":"ulferts:feature/adapt_api_extension_to_core","ref":"feature/adapt_api_extension_to_core","sha":"fea7c111aefa25bdb435af0c562711100687958a","user":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"repo":{"id":36865739,"name":"openproject-costs","full_name":"ulferts/openproject-costs","owner":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ulferts/openproject-costs","description":"OpenProject plugin to manage project costs","fork":true,"url":"https://api.github.com/repos/ulferts/openproject-costs","forks_url":"https://api.github.com/repos/ulferts/openproject-costs/forks","keys_url":"https://api.github.com/repos/ulferts/openproject-costs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ulferts/openproject-costs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ulferts/openproject-costs/teams","hooks_url":"https://api.github.com/repos/ulferts/openproject-costs/hooks","issue_events_url":"https://api.github.com/repos/ulferts/openproject-costs/issues/events{/number}","events_url":"https://api.github.com/repos/ulferts/openproject-costs/events","assignees_url":"https://api.github.com/repos/ulferts/openproject-costs/assignees{/user}","branches_url":"https://api.github.com/repos/ulferts/openproject-costs/branches{/branch}","tags_url":"https://api.github.com/repos/ulferts/openproject-costs/tags","blobs_url":"https://api.github.com/repos/ulferts/openproject-costs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ulferts/openproject-costs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ulferts/openproject-costs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ulferts/openproject-costs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ulferts/openproject-costs/statuses/{sha}","languages_url":"https://api.github.com/repos/ulferts/openproject-costs/languages","stargazers_url":"https://api.github.com/repos/ulferts/openproject-costs/stargazers","contributors_url":"https://api.github.com/repos/ulferts/openproject-costs/contributors","subscribers_url":"https://api.github.com/repos/ulferts/openproject-costs/subscribers","subscription_url":"https://api.github.com/repos/ulferts/openproject-costs/subscription","commits_url":"https://api.github.com/repos/ulferts/openproject-costs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ulferts/openproject-costs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ulferts/openproject-costs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ulferts/openproject-costs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ulferts/openproject-costs/contents/{+path}","compare_url":"https://api.github.com/repos/ulferts/openproject-costs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ulferts/openproject-costs/merges","archive_url":"https://api.github.com/repos/ulferts/openproject-costs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ulferts/openproject-costs/downloads","issues_url":"https://api.github.com/repos/ulferts/openproject-costs/issues{/number}","pulls_url":"https://api.github.com/repos/ulferts/openproject-costs/pulls{/number}","milestones_url":"https://api.github.com/repos/ulferts/openproject-costs/milestones{/number}","notifications_url":"https://api.github.com/repos/ulferts/openproject-costs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ulferts/openproject-costs/labels{/name}","releases_url":"https://api.github.com/repos/ulferts/openproject-costs/releases{/id}","created_at":"2015-06-04T11:13:21Z","updated_at":"2015-06-04T11:13:21Z","pushed_at":"2015-06-12T14:46:38Z","git_url":"git://github.com/ulferts/openproject-costs.git","ssh_url":"git@github.com:ulferts/openproject-costs.git","clone_url":"https://github.com/ulferts/openproject-costs.git","svn_url":"https://github.com/ulferts/openproject-costs","homepage":"https://www.openproject.org/projects/costs-plugin","size":1642,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"finnlabs:release/4.2","ref":"release/4.2","sha":"f585c2f5fba47c023ac8d8d05c415aa362bf59fa","user":{"login":"finnlabs","id":86719,"avatar_url":"https://avatars.githubusercontent.com/u/86719?v=3","gravatar_id":"","url":"https://api.github.com/users/finnlabs","html_url":"https://github.com/finnlabs","followers_url":"https://api.github.com/users/finnlabs/followers","following_url":"https://api.github.com/users/finnlabs/following{/other_user}","gists_url":"https://api.github.com/users/finnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/finnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnlabs/subscriptions","organizations_url":"https://api.github.com/users/finnlabs/orgs","repos_url":"https://api.github.com/users/finnlabs/repos","events_url":"https://api.github.com/users/finnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/finnlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":9640519,"name":"openproject-costs","full_name":"finnlabs/openproject-costs","owner":{"login":"finnlabs","id":86719,"avatar_url":"https://avatars.githubusercontent.com/u/86719?v=3","gravatar_id":"","url":"https://api.github.com/users/finnlabs","html_url":"https://github.com/finnlabs","followers_url":"https://api.github.com/users/finnlabs/followers","following_url":"https://api.github.com/users/finnlabs/following{/other_user}","gists_url":"https://api.github.com/users/finnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/finnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnlabs/subscriptions","organizations_url":"https://api.github.com/users/finnlabs/orgs","repos_url":"https://api.github.com/users/finnlabs/repos","events_url":"https://api.github.com/users/finnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/finnlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnlabs/openproject-costs","description":"OpenProject plugin to manage project costs","fork":false,"url":"https://api.github.com/repos/finnlabs/openproject-costs","forks_url":"https://api.github.com/repos/finnlabs/openproject-costs/forks","keys_url":"https://api.github.com/repos/finnlabs/openproject-costs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnlabs/openproject-costs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnlabs/openproject-costs/teams","hooks_url":"https://api.github.com/repos/finnlabs/openproject-costs/hooks","issue_events_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/events{/number}","events_url":"https://api.github.com/repos/finnlabs/openproject-costs/events","assignees_url":"https://api.github.com/repos/finnlabs/openproject-costs/assignees{/user}","branches_url":"https://api.github.com/repos/finnlabs/openproject-costs/branches{/branch}","tags_url":"https://api.github.com/repos/finnlabs/openproject-costs/tags","blobs_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnlabs/openproject-costs/statuses/{sha}","languages_url":"https://api.github.com/repos/finnlabs/openproject-costs/languages","stargazers_url":"https://api.github.com/repos/finnlabs/openproject-costs/stargazers","contributors_url":"https://api.github.com/repos/finnlabs/openproject-costs/contributors","subscribers_url":"https://api.github.com/repos/finnlabs/openproject-costs/subscribers","subscription_url":"https://api.github.com/repos/finnlabs/openproject-costs/subscription","commits_url":"https://api.github.com/repos/finnlabs/openproject-costs/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnlabs/openproject-costs/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnlabs/openproject-costs/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnlabs/openproject-costs/contents/{+path}","compare_url":"https://api.github.com/repos/finnlabs/openproject-costs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnlabs/openproject-costs/merges","archive_url":"https://api.github.com/repos/finnlabs/openproject-costs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnlabs/openproject-costs/downloads","issues_url":"https://api.github.com/repos/finnlabs/openproject-costs/issues{/number}","pulls_url":"https://api.github.com/repos/finnlabs/openproject-costs/pulls{/number}","milestones_url":"https://api.github.com/repos/finnlabs/openproject-costs/milestones{/number}","notifications_url":"https://api.github.com/repos/finnlabs/openproject-costs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnlabs/openproject-costs/labels{/name}","releases_url":"https://api.github.com/repos/finnlabs/openproject-costs/releases{/id}","created_at":"2013-04-24T05:58:04Z","updated_at":"2015-04-10T14:55:56Z","pushed_at":"2015-06-12T14:51:00Z","git_url":"git://github.com/finnlabs/openproject-costs.git","ssh_url":"git@github.com:finnlabs/openproject-costs.git","clone_url":"https://github.com/finnlabs/openproject-costs.git","svn_url":"https://github.com/finnlabs/openproject-costs","homepage":"https://www.openproject.org/projects/costs-plugin","size":3288,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":4,"forks":11,"open_issues":4,"watchers":6,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140"},"html":{"href":"https://github.com/finnlabs/openproject-costs/pull/140"},"issue":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/issues/140"},"comments":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/finnlabs/openproject-costs/statuses/fea7c111aefa25bdb435af0c562711100687958a"}}}}