{"action":"created","comment":{"url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/comments/165850429","pull_request_review_id":93851189,"id":165850429,"diff_hunk":"@@ -67,13 +67,17 @@\n       <td>\n         <%= link_to t('.show', default: t('helpers.links.show')),\n                     match_path(match), :class => 'btn btn-default btn-xs' %>\n-        <%= link_to t('.edit', default: t('helpers.links.edit')),\n-                    edit_match_path(match), :class => 'btn btn-default btn-xs' %>\n-        <%= link_to t('.destroy', default: t('helpers.links.destroy')),\n-                    match_path(match),\n-                    :method => :delete,\n-                    :data => { :confirm => t('.confirm', default: t('helpers.links.confirm')) },\n-                    :class => 'btn btn-xs btn-danger' %>\n+        <% if can? :edit, match %>\n+          <%= link_to t('.edit', default: t('helpers.links.edit')),\n+                      edit_match_path(match), :class => 'btn btn-default btn-xs' %>\n+        <% end %>\n+        <% if current_user&.admin %>","path":"app/views/events/_schedule_league.html.erb","position":15,"original_position":15,"commit_id":"300015922f519d319ff8eb3e59d23c463606f532","original_commit_id":"300015922f519d319ff8eb3e59d23c463606f532","user":{"login":"nikriek","id":2924261,"avatar_url":"https://avatars0.githubusercontent.com/u/2924261?v=4","gravatar_id":"","url":"https://api.github.com/users/nikriek","html_url":"https://github.com/nikriek","followers_url":"https://api.github.com/users/nikriek/followers","following_url":"https://api.github.com/users/nikriek/following{/other_user}","gists_url":"https://api.github.com/users/nikriek/gists{/gist_id}","starred_url":"https://api.github.com/users/nikriek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikriek/subscriptions","organizations_url":"https://api.github.com/users/nikriek/orgs","repos_url":"https://api.github.com/users/nikriek/repos","events_url":"https://api.github.com/users/nikriek/events{/privacy}","received_events_url":"https://api.github.com/users/nikriek/received_events","type":"User","site_admin":false},"body":"This check should be moved to the abilities file, so that you can use `if can? :destroy, match` here.","created_at":"2018-02-04T16:58:03Z","updated_at":"2018-02-04T16:58:50Z","html_url":"https://github.com/hpi-swt2/sport-portal/pull/493#discussion_r165850429","pull_request_url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/comments/165850429"},"html":{"href":"https://github.com/hpi-swt2/sport-portal/pull/493#discussion_r165850429"},"pull_request":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493"}}},"pull_request":{"url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493","id":166211769,"html_url":"https://github.com/hpi-swt2/sport-portal/pull/493","diff_url":"https://github.com/hpi-swt2/sport-portal/pull/493.diff","patch_url":"https://github.com/hpi-swt2/sport-portal/pull/493.patch","issue_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/493","number":493,"state":"open","locked":false,"title":"Dividebyzero/#329/remove match deletion","user":{"login":"Lariiii","id":19169633,"avatar_url":"https://avatars1.githubusercontent.com/u/19169633?v=4","gravatar_id":"","url":"https://api.github.com/users/Lariiii","html_url":"https://github.com/Lariiii","followers_url":"https://api.github.com/users/Lariiii/followers","following_url":"https://api.github.com/users/Lariiii/following{/other_user}","gists_url":"https://api.github.com/users/Lariiii/gists{/gist_id}","starred_url":"https://api.github.com/users/Lariiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lariiii/subscriptions","organizations_url":"https://api.github.com/users/Lariiii/orgs","repos_url":"https://api.github.com/users/Lariiii/repos","events_url":"https://api.github.com/users/Lariiii/events{/privacy}","received_events_url":"https://api.github.com/users/Lariiii/received_events","type":"User","site_admin":false},"body":"Still WIP","created_at":"2018-01-31T09:54:00Z","updated_at":"2018-02-04T16:58:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d552c537260ae12624ca20d4925c2ef8e883ca3","assignee":{"login":"Lariiii","id":19169633,"avatar_url":"https://avatars1.githubusercontent.com/u/19169633?v=4","gravatar_id":"","url":"https://api.github.com/users/Lariiii","html_url":"https://github.com/Lariiii","followers_url":"https://api.github.com/users/Lariiii/followers","following_url":"https://api.github.com/users/Lariiii/following{/other_user}","gists_url":"https://api.github.com/users/Lariiii/gists{/gist_id}","starred_url":"https://api.github.com/users/Lariiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lariiii/subscriptions","organizations_url":"https://api.github.com/users/Lariiii/orgs","repos_url":"https://api.github.com/users/Lariiii/repos","events_url":"https://api.github.com/users/Lariiii/events{/privacy}","received_events_url":"https://api.github.com/users/Lariiii/received_events","type":"User","site_admin":false},"assignees":[{"login":"nikriek","id":2924261,"avatar_url":"https://avatars0.githubusercontent.com/u/2924261?v=4","gravatar_id":"","url":"https://api.github.com/users/nikriek","html_url":"https://github.com/nikriek","followers_url":"https://api.github.com/users/nikriek/followers","following_url":"https://api.github.com/users/nikriek/following{/other_user}","gists_url":"https://api.github.com/users/nikriek/gists{/gist_id}","starred_url":"https://api.github.com/users/nikriek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikriek/subscriptions","organizations_url":"https://api.github.com/users/nikriek/orgs","repos_url":"https://api.github.com/users/nikriek/repos","events_url":"https://api.github.com/users/nikriek/events{/privacy}","received_events_url":"https://api.github.com/users/nikriek/received_events","type":"User","site_admin":false},{"login":"Lariiii","id":19169633,"avatar_url":"https://avatars1.githubusercontent.com/u/19169633?v=4","gravatar_id":"","url":"https://api.github.com/users/Lariiii","html_url":"https://github.com/Lariiii","followers_url":"https://api.github.com/users/Lariiii/followers","following_url":"https://api.github.com/users/Lariiii/following{/other_user}","gists_url":"https://api.github.com/users/Lariiii/gists{/gist_id}","starred_url":"https://api.github.com/users/Lariiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lariiii/subscriptions","organizations_url":"https://api.github.com/users/Lariiii/orgs","repos_url":"https://api.github.com/users/Lariiii/repos","events_url":"https://api.github.com/users/Lariiii/events{/privacy}","received_events_url":"https://api.github.com/users/Lariiii/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493/commits","review_comments_url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493/comments","review_comment_url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/493/comments","statuses_url":"https://api.github.com/repos/hpi-swt2/sport-portal/statuses/300015922f519d319ff8eb3e59d23c463606f532","head":{"label":"hpi-swt2:dividebyzero/#329/removeMatchDeletion","ref":"dividebyzero/#329/removeMatchDeletion","sha":"300015922f519d319ff8eb3e59d23c463606f532","user":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars3.githubusercontent.com/u/6618414?v=4","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"repo":{"id":104343602,"name":"sport-portal","full_name":"hpi-swt2/sport-portal","owner":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars3.githubusercontent.com/u/6618414?v=4","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpi-swt2/sport-portal","description":"Manage and organize sport events and sports leagues","fork":false,"url":"https://api.github.com/repos/hpi-swt2/sport-portal","forks_url":"https://api.github.com/repos/hpi-swt2/sport-portal/forks","keys_url":"https://api.github.com/repos/hpi-swt2/sport-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpi-swt2/sport-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpi-swt2/sport-portal/teams","hooks_url":"https://api.github.com/repos/hpi-swt2/sport-portal/hooks","issue_events_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/events{/number}","events_url":"https://api.github.com/repos/hpi-swt2/sport-portal/events","assignees_url":"https://api.github.com/repos/hpi-swt2/sport-portal/assignees{/user}","branches_url":"https://api.github.com/repos/hpi-swt2/sport-portal/branches{/branch}","tags_url":"https://api.github.com/repos/hpi-swt2/sport-portal/tags","blobs_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpi-swt2/sport-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/hpi-swt2/sport-portal/languages","stargazers_url":"https://api.github.com/repos/hpi-swt2/sport-portal/stargazers","contributors_url":"https://api.github.com/repos/hpi-swt2/sport-portal/contributors","subscribers_url":"https://api.github.com/repos/hpi-swt2/sport-portal/subscribers","subscription_url":"https://api.github.com/repos/hpi-swt2/sport-portal/subscription","commits_url":"https://api.github.com/repos/hpi-swt2/sport-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpi-swt2/sport-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpi-swt2/sport-portal/contents/{+path}","compare_url":"https://api.github.com/repos/hpi-swt2/sport-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpi-swt2/sport-portal/merges","archive_url":"https://api.github.com/repos/hpi-swt2/sport-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpi-swt2/sport-portal/downloads","issues_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues{/number}","pulls_url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/hpi-swt2/sport-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/hpi-swt2/sport-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpi-swt2/sport-portal/labels{/name}","releases_url":"https://api.github.com/repos/hpi-swt2/sport-portal/releases{/id}","deployments_url":"https://api.github.com/repos/hpi-swt2/sport-portal/deployments","created_at":"2017-09-21T12:10:32Z","updated_at":"2018-01-16T17:35:28Z","pushed_at":"2018-02-04T16:50:40Z","git_url":"git://github.com/hpi-swt2/sport-portal.git","ssh_url":"git@github.com:hpi-swt2/sport-portal.git","clone_url":"https://github.com/hpi-swt2/sport-portal.git","svn_url":"https://github.com/hpi-swt2/sport-portal","homepage":null,"size":15361,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":106,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1,"open_issues":106,"watchers":17,"default_branch":"dev"}},"base":{"label":"hpi-swt2:dev","ref":"dev","sha":"fd603d32fa5d89387b7fe58af8cedc0d51f50913","user":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars3.githubusercontent.com/u/6618414?v=4","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"repo":{"id":104343602,"name":"sport-portal","full_name":"hpi-swt2/sport-portal","owner":{"login":"hpi-swt2","id":6618414,"avatar_url":"https://avatars3.githubusercontent.com/u/6618414?v=4","gravatar_id":"","url":"https://api.github.com/users/hpi-swt2","html_url":"https://github.com/hpi-swt2","followers_url":"https://api.github.com/users/hpi-swt2/followers","following_url":"https://api.github.com/users/hpi-swt2/following{/other_user}","gists_url":"https://api.github.com/users/hpi-swt2/gists{/gist_id}","starred_url":"https://api.github.com/users/hpi-swt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpi-swt2/subscriptions","organizations_url":"https://api.github.com/users/hpi-swt2/orgs","repos_url":"https://api.github.com/users/hpi-swt2/repos","events_url":"https://api.github.com/users/hpi-swt2/events{/privacy}","received_events_url":"https://api.github.com/users/hpi-swt2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpi-swt2/sport-portal","description":"Manage and organize sport events and sports leagues","fork":false,"url":"https://api.github.com/repos/hpi-swt2/sport-portal","forks_url":"https://api.github.com/repos/hpi-swt2/sport-portal/forks","keys_url":"https://api.github.com/repos/hpi-swt2/sport-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpi-swt2/sport-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpi-swt2/sport-portal/teams","hooks_url":"https://api.github.com/repos/hpi-swt2/sport-portal/hooks","issue_events_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/events{/number}","events_url":"https://api.github.com/repos/hpi-swt2/sport-portal/events","assignees_url":"https://api.github.com/repos/hpi-swt2/sport-portal/assignees{/user}","branches_url":"https://api.github.com/repos/hpi-swt2/sport-portal/branches{/branch}","tags_url":"https://api.github.com/repos/hpi-swt2/sport-portal/tags","blobs_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpi-swt2/sport-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/hpi-swt2/sport-portal/languages","stargazers_url":"https://api.github.com/repos/hpi-swt2/sport-portal/stargazers","contributors_url":"https://api.github.com/repos/hpi-swt2/sport-portal/contributors","subscribers_url":"https://api.github.com/repos/hpi-swt2/sport-portal/subscribers","subscription_url":"https://api.github.com/repos/hpi-swt2/sport-portal/subscription","commits_url":"https://api.github.com/repos/hpi-swt2/sport-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpi-swt2/sport-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpi-swt2/sport-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpi-swt2/sport-portal/contents/{+path}","compare_url":"https://api.github.com/repos/hpi-swt2/sport-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpi-swt2/sport-portal/merges","archive_url":"https://api.github.com/repos/hpi-swt2/sport-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpi-swt2/sport-portal/downloads","issues_url":"https://api.github.com/repos/hpi-swt2/sport-portal/issues{/number}","pulls_url":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/hpi-swt2/sport-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/hpi-swt2/sport-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpi-swt2/sport-portal/labels{/name}","releases_url":"https://api.github.com/repos/hpi-swt2/sport-portal/releases{/id}","deployments_url":"https://api.github.com/repos/hpi-swt2/sport-portal/deployments","created_at":"2017-09-21T12:10:32Z","updated_at":"2018-01-16T17:35:28Z","pushed_at":"2018-02-04T16:50:40Z","git_url":"git://github.com/hpi-swt2/sport-portal.git","ssh_url":"git@github.com:hpi-swt2/sport-portal.git","clone_url":"https://github.com/hpi-swt2/sport-portal.git","svn_url":"https://github.com/hpi-swt2/sport-portal","homepage":null,"size":15361,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":106,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1,"open_issues":106,"watchers":17,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493"},"html":{"href":"https://github.com/hpi-swt2/sport-portal/pull/493"},"issue":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/493"},"comments":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/issues/493/comments"},"review_comments":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493/comments"},"review_comment":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/pulls/493/commits"},"statuses":{"href":"https://api.github.com/repos/hpi-swt2/sport-portal/statuses/300015922f519d319ff8eb3e59d23c463606f532"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nikriek"}}