{"action":"created","comment":{"url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/comments/38919657","id":38919657,"diff_hunk":"@@ -35,12 +35,20 @@ def display_name(id)\n   def get_id","path":"app/helpers/application_helper.rb","position":37,"original_position":37,"commit_id":"16500bc66276417cb6e3241c2278ef2482228aab","original_commit_id":"16500bc66276417cb6e3241c2278ef2482228aab","user":{"login":"JensDebergh","id":6651506,"avatar_url":"https://avatars.githubusercontent.com/u/6651506?v=3","gravatar_id":"","url":"https://api.github.com/users/JensDebergh","html_url":"https://github.com/JensDebergh","followers_url":"https://api.github.com/users/JensDebergh/followers","following_url":"https://api.github.com/users/JensDebergh/following{/other_user}","gists_url":"https://api.github.com/users/JensDebergh/gists{/gist_id}","starred_url":"https://api.github.com/users/JensDebergh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JensDebergh/subscriptions","organizations_url":"https://api.github.com/users/JensDebergh/orgs","repos_url":"https://api.github.com/users/JensDebergh/repos","events_url":"https://api.github.com/users/JensDebergh/events{/privacy}","received_events_url":"https://api.github.com/users/JensDebergh/received_events","type":"User","site_admin":false},"body":"I'm removing this shieeeet soon :shipit: \r\n","created_at":"2015-09-08T12:35:40Z","updated_at":"2015-09-08T12:35:40Z","html_url":"https://github.com/FalkoJoseph/evenspire/pull/23#discussion_r38919657","pull_request_url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/comments/38919657"},"html":{"href":"https://github.com/FalkoJoseph/evenspire/pull/23#discussion_r38919657"},"pull_request":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23","id":44291483,"html_url":"https://github.com/FalkoJoseph/evenspire/pull/23","diff_url":"https://github.com/FalkoJoseph/evenspire/pull/23.diff","patch_url":"https://github.com/FalkoJoseph/evenspire/pull/23.patch","issue_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/23","number":23,"state":"open","locked":false,"title":"Member roles","user":{"login":"FalkoJoseph","id":556086,"avatar_url":"https://avatars.githubusercontent.com/u/556086?v=3","gravatar_id":"","url":"https://api.github.com/users/FalkoJoseph","html_url":"https://github.com/FalkoJoseph","followers_url":"https://api.github.com/users/FalkoJoseph/followers","following_url":"https://api.github.com/users/FalkoJoseph/following{/other_user}","gists_url":"https://api.github.com/users/FalkoJoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/FalkoJoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FalkoJoseph/subscriptions","organizations_url":"https://api.github.com/users/FalkoJoseph/orgs","repos_url":"https://api.github.com/users/FalkoJoseph/repos","events_url":"https://api.github.com/users/FalkoJoseph/events{/privacy}","received_events_url":"https://api.github.com/users/FalkoJoseph/received_events","type":"User","site_admin":false},"body":"Implemented member roles.\r\n\r\n<img width=\"1552\" alt=\"screen shot 2015-09-08 at 01 07 38\" src=\"https://cloud.githubusercontent.com/assets/556086/9723641/085017b0-55c6-11e5-80e4-6754cef1ae95.png\">\r\n\r\n<img width=\"786\" alt=\"screen shot 2015-09-08 at 01 08 41\" src=\"https://cloud.githubusercontent.com/assets/556086/9723647/2ec77488-55c6-11e5-87f6-bcda436babe6.png\">\r\n\r\nFeatures\r\n\r\n* 2 member roles: owner (admin) and contributor.\r\n* You can't add yourself to an organisation, only admins can.\r\n* Admins can't remove themselves.\r\n* Contributors can't add others to a member group.\r\n* Only admins can edit/close/delete an organisation and event.\r\n\r\nAlso created an application helper to quickly access the member role from the current user on a specific organisation.\r\n\r\n     organisation_owner(@organisation)\r\n\r\nStill needs the new parameter implementation and some cleanup though. Other than that, the feature itself is ready.","created_at":"2015-09-05T22:39:10Z","updated_at":"2015-09-08T12:35:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0e0ace9186e3ecf51fce5ea15f77a9fa9fa2598","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23/commits","review_comments_url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23/comments","review_comment_url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/23/comments","statuses_url":"https://api.github.com/repos/FalkoJoseph/evenspire/statuses/16500bc66276417cb6e3241c2278ef2482228aab","head":{"label":"FalkoJoseph:fj-member-roles","ref":"fj-member-roles","sha":"16500bc66276417cb6e3241c2278ef2482228aab","user":{"login":"FalkoJoseph","id":556086,"avatar_url":"https://avatars.githubusercontent.com/u/556086?v=3","gravatar_id":"","url":"https://api.github.com/users/FalkoJoseph","html_url":"https://github.com/FalkoJoseph","followers_url":"https://api.github.com/users/FalkoJoseph/followers","following_url":"https://api.github.com/users/FalkoJoseph/following{/other_user}","gists_url":"https://api.github.com/users/FalkoJoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/FalkoJoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FalkoJoseph/subscriptions","organizations_url":"https://api.github.com/users/FalkoJoseph/orgs","repos_url":"https://api.github.com/users/FalkoJoseph/repos","events_url":"https://api.github.com/users/FalkoJoseph/events{/privacy}","received_events_url":"https://api.github.com/users/FalkoJoseph/received_events","type":"User","site_admin":false},"repo":{"id":39221446,"name":"evenspire","full_name":"FalkoJoseph/evenspire","owner":{"login":"FalkoJoseph","id":556086,"avatar_url":"https://avatars.githubusercontent.com/u/556086?v=3","gravatar_id":"","url":"https://api.github.com/users/FalkoJoseph","html_url":"https://github.com/FalkoJoseph","followers_url":"https://api.github.com/users/FalkoJoseph/followers","following_url":"https://api.github.com/users/FalkoJoseph/following{/other_user}","gists_url":"https://api.github.com/users/FalkoJoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/FalkoJoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FalkoJoseph/subscriptions","organizations_url":"https://api.github.com/users/FalkoJoseph/orgs","repos_url":"https://api.github.com/users/FalkoJoseph/repos","events_url":"https://api.github.com/users/FalkoJoseph/events{/privacy}","received_events_url":"https://api.github.com/users/FalkoJoseph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FalkoJoseph/evenspire","description":"Event management and analytics.","fork":false,"url":"https://api.github.com/repos/FalkoJoseph/evenspire","forks_url":"https://api.github.com/repos/FalkoJoseph/evenspire/forks","keys_url":"https://api.github.com/repos/FalkoJoseph/evenspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FalkoJoseph/evenspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FalkoJoseph/evenspire/teams","hooks_url":"https://api.github.com/repos/FalkoJoseph/evenspire/hooks","issue_events_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/events{/number}","events_url":"https://api.github.com/repos/FalkoJoseph/evenspire/events","assignees_url":"https://api.github.com/repos/FalkoJoseph/evenspire/assignees{/user}","branches_url":"https://api.github.com/repos/FalkoJoseph/evenspire/branches{/branch}","tags_url":"https://api.github.com/repos/FalkoJoseph/evenspire/tags","blobs_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FalkoJoseph/evenspire/statuses/{sha}","languages_url":"https://api.github.com/repos/FalkoJoseph/evenspire/languages","stargazers_url":"https://api.github.com/repos/FalkoJoseph/evenspire/stargazers","contributors_url":"https://api.github.com/repos/FalkoJoseph/evenspire/contributors","subscribers_url":"https://api.github.com/repos/FalkoJoseph/evenspire/subscribers","subscription_url":"https://api.github.com/repos/FalkoJoseph/evenspire/subscription","commits_url":"https://api.github.com/repos/FalkoJoseph/evenspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/FalkoJoseph/evenspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/FalkoJoseph/evenspire/contents/{+path}","compare_url":"https://api.github.com/repos/FalkoJoseph/evenspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FalkoJoseph/evenspire/merges","archive_url":"https://api.github.com/repos/FalkoJoseph/evenspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FalkoJoseph/evenspire/downloads","issues_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues{/number}","pulls_url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls{/number}","milestones_url":"https://api.github.com/repos/FalkoJoseph/evenspire/milestones{/number}","notifications_url":"https://api.github.com/repos/FalkoJoseph/evenspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FalkoJoseph/evenspire/labels{/name}","releases_url":"https://api.github.com/repos/FalkoJoseph/evenspire/releases{/id}","created_at":"2015-07-16T21:30:22Z","updated_at":"2015-09-07T23:20:48Z","pushed_at":"2015-09-08T06:33:30Z","git_url":"git://github.com/FalkoJoseph/evenspire.git","ssh_url":"git@github.com:FalkoJoseph/evenspire.git","clone_url":"https://github.com/FalkoJoseph/evenspire.git","svn_url":"https://github.com/FalkoJoseph/evenspire","homepage":"http://evenspire.herokuapp.com/","size":16924,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"FalkoJoseph:master","ref":"master","sha":"49263c89a37a784a2c1037cc00b23d815ac8aa2e","user":{"login":"FalkoJoseph","id":556086,"avatar_url":"https://avatars.githubusercontent.com/u/556086?v=3","gravatar_id":"","url":"https://api.github.com/users/FalkoJoseph","html_url":"https://github.com/FalkoJoseph","followers_url":"https://api.github.com/users/FalkoJoseph/followers","following_url":"https://api.github.com/users/FalkoJoseph/following{/other_user}","gists_url":"https://api.github.com/users/FalkoJoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/FalkoJoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FalkoJoseph/subscriptions","organizations_url":"https://api.github.com/users/FalkoJoseph/orgs","repos_url":"https://api.github.com/users/FalkoJoseph/repos","events_url":"https://api.github.com/users/FalkoJoseph/events{/privacy}","received_events_url":"https://api.github.com/users/FalkoJoseph/received_events","type":"User","site_admin":false},"repo":{"id":39221446,"name":"evenspire","full_name":"FalkoJoseph/evenspire","owner":{"login":"FalkoJoseph","id":556086,"avatar_url":"https://avatars.githubusercontent.com/u/556086?v=3","gravatar_id":"","url":"https://api.github.com/users/FalkoJoseph","html_url":"https://github.com/FalkoJoseph","followers_url":"https://api.github.com/users/FalkoJoseph/followers","following_url":"https://api.github.com/users/FalkoJoseph/following{/other_user}","gists_url":"https://api.github.com/users/FalkoJoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/FalkoJoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FalkoJoseph/subscriptions","organizations_url":"https://api.github.com/users/FalkoJoseph/orgs","repos_url":"https://api.github.com/users/FalkoJoseph/repos","events_url":"https://api.github.com/users/FalkoJoseph/events{/privacy}","received_events_url":"https://api.github.com/users/FalkoJoseph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FalkoJoseph/evenspire","description":"Event management and analytics.","fork":false,"url":"https://api.github.com/repos/FalkoJoseph/evenspire","forks_url":"https://api.github.com/repos/FalkoJoseph/evenspire/forks","keys_url":"https://api.github.com/repos/FalkoJoseph/evenspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FalkoJoseph/evenspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FalkoJoseph/evenspire/teams","hooks_url":"https://api.github.com/repos/FalkoJoseph/evenspire/hooks","issue_events_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/events{/number}","events_url":"https://api.github.com/repos/FalkoJoseph/evenspire/events","assignees_url":"https://api.github.com/repos/FalkoJoseph/evenspire/assignees{/user}","branches_url":"https://api.github.com/repos/FalkoJoseph/evenspire/branches{/branch}","tags_url":"https://api.github.com/repos/FalkoJoseph/evenspire/tags","blobs_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FalkoJoseph/evenspire/statuses/{sha}","languages_url":"https://api.github.com/repos/FalkoJoseph/evenspire/languages","stargazers_url":"https://api.github.com/repos/FalkoJoseph/evenspire/stargazers","contributors_url":"https://api.github.com/repos/FalkoJoseph/evenspire/contributors","subscribers_url":"https://api.github.com/repos/FalkoJoseph/evenspire/subscribers","subscription_url":"https://api.github.com/repos/FalkoJoseph/evenspire/subscription","commits_url":"https://api.github.com/repos/FalkoJoseph/evenspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/FalkoJoseph/evenspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/FalkoJoseph/evenspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/FalkoJoseph/evenspire/contents/{+path}","compare_url":"https://api.github.com/repos/FalkoJoseph/evenspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FalkoJoseph/evenspire/merges","archive_url":"https://api.github.com/repos/FalkoJoseph/evenspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FalkoJoseph/evenspire/downloads","issues_url":"https://api.github.com/repos/FalkoJoseph/evenspire/issues{/number}","pulls_url":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls{/number}","milestones_url":"https://api.github.com/repos/FalkoJoseph/evenspire/milestones{/number}","notifications_url":"https://api.github.com/repos/FalkoJoseph/evenspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FalkoJoseph/evenspire/labels{/name}","releases_url":"https://api.github.com/repos/FalkoJoseph/evenspire/releases{/id}","created_at":"2015-07-16T21:30:22Z","updated_at":"2015-09-07T23:20:48Z","pushed_at":"2015-09-08T06:33:30Z","git_url":"git://github.com/FalkoJoseph/evenspire.git","ssh_url":"git@github.com:FalkoJoseph/evenspire.git","clone_url":"https://github.com/FalkoJoseph/evenspire.git","svn_url":"https://github.com/FalkoJoseph/evenspire","homepage":"http://evenspire.herokuapp.com/","size":16924,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23"},"html":{"href":"https://github.com/FalkoJoseph/evenspire/pull/23"},"issue":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/23"},"comments":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/FalkoJoseph/evenspire/statuses/16500bc66276417cb6e3241c2278ef2482228aab"}}}}