{"action":"created","comment":{"url":"https://api.github.com/repos/poledev/mathieu/pulls/comments/32524305","id":32524305,"diff_hunk":"@@ -43,7 +43,7 @@ protected function isGranted($attribute, $job, $user = null)\n \n         $access = $user->getId() === $job->getUser()->getId() || in_array(User::ROLE_SUPER_ADMIN, $user->getRoles());\n \n-        if (($attribute === self::EDIT or $attribute === self::DELETE) && $access) {\n+        if (($attribute === self::EDIT || $attribute === self::DELETE) && $access) {","path":"src/SensioLabs/JobBoardBundle/Security/Authorization/Voter/JobVoter.php","position":5,"original_position":5,"commit_id":"eff8e5b6f060f92d3ec157297265e0dfc196ab93","original_commit_id":"eff8e5b6f060f92d3ec157297265e0dfc196ab93","user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"body":"Eventually you can use `in_array`. Matter of taste. :)","created_at":"2015-06-16T14:12:46Z","updated_at":"2015-06-16T14:12:46Z","html_url":"https://github.com/poledev/mathieu/pull/41#discussion_r32524305","pull_request_url":"https://api.github.com/repos/poledev/mathieu/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/poledev/mathieu/pulls/comments/32524305"},"html":{"href":"https://github.com/poledev/mathieu/pull/41#discussion_r32524305"},"pull_request":{"href":"https://api.github.com/repos/poledev/mathieu/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/poledev/mathieu/pulls/41","id":37775186,"html_url":"https://github.com/poledev/mathieu/pull/41","diff_url":"https://github.com/poledev/mathieu/pull/41.diff","patch_url":"https://github.com/poledev/mathieu/pull/41.patch","issue_url":"https://api.github.com/repos/poledev/mathieu/issues/41","number":41,"state":"open","locked":false,"title":"As an administrator, I need to edit an announcement","user":{"login":"mmarchois","id":2683379,"avatar_url":"https://avatars.githubusercontent.com/u/2683379?v=3","gravatar_id":"","url":"https://api.github.com/users/mmarchois","html_url":"https://github.com/mmarchois","followers_url":"https://api.github.com/users/mmarchois/followers","following_url":"https://api.github.com/users/mmarchois/following{/other_user}","gists_url":"https://api.github.com/users/mmarchois/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarchois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarchois/subscriptions","organizations_url":"https://api.github.com/users/mmarchois/orgs","repos_url":"https://api.github.com/users/mmarchois/repos","events_url":"https://api.github.com/users/mmarchois/events{/privacy}","received_events_url":"https://api.github.com/users/mmarchois/received_events","type":"User","site_admin":false},"body":"PR 11\r\n\r\nSee https://github.com/poledev/mathieu/issues/8","created_at":"2015-06-16T09:27:04Z","updated_at":"2015-06-16T14:12:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10ad49f8e50272ae7bcd1a4b4af2d82b1a6db94e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poledev/mathieu/pulls/41/commits","review_comments_url":"https://api.github.com/repos/poledev/mathieu/pulls/41/comments","review_comment_url":"https://api.github.com/repos/poledev/mathieu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poledev/mathieu/issues/41/comments","statuses_url":"https://api.github.com/repos/poledev/mathieu/statuses/eff8e5b6f060f92d3ec157297265e0dfc196ab93","head":{"label":"poledev:issue-11","ref":"issue-11","sha":"eff8e5b6f060f92d3ec157297265e0dfc196ab93","user":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"repo":{"id":36651258,"name":"mathieu","full_name":"poledev/mathieu","owner":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/poledev/mathieu","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/mathieu","forks_url":"https://api.github.com/repos/poledev/mathieu/forks","keys_url":"https://api.github.com/repos/poledev/mathieu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/mathieu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/mathieu/teams","hooks_url":"https://api.github.com/repos/poledev/mathieu/hooks","issue_events_url":"https://api.github.com/repos/poledev/mathieu/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/mathieu/events","assignees_url":"https://api.github.com/repos/poledev/mathieu/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/mathieu/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/mathieu/tags","blobs_url":"https://api.github.com/repos/poledev/mathieu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/mathieu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/mathieu/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/mathieu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/mathieu/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/mathieu/languages","stargazers_url":"https://api.github.com/repos/poledev/mathieu/stargazers","contributors_url":"https://api.github.com/repos/poledev/mathieu/contributors","subscribers_url":"https://api.github.com/repos/poledev/mathieu/subscribers","subscription_url":"https://api.github.com/repos/poledev/mathieu/subscription","commits_url":"https://api.github.com/repos/poledev/mathieu/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/mathieu/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/mathieu/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/mathieu/issues/comments{/number}","contents_url":"https://api.github.com/repos/poledev/mathieu/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/mathieu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/mathieu/merges","archive_url":"https://api.github.com/repos/poledev/mathieu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/mathieu/downloads","issues_url":"https://api.github.com/repos/poledev/mathieu/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/mathieu/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/mathieu/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/mathieu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/mathieu/labels{/name}","releases_url":"https://api.github.com/repos/poledev/mathieu/releases{/id}","created_at":"2015-06-01T09:37:39Z","updated_at":"2015-06-01T09:39:33Z","pushed_at":"2015-06-16T13:54:20Z","git_url":"git://github.com/poledev/mathieu.git","ssh_url":"git@github.com:poledev/mathieu.git","clone_url":"https://github.com/poledev/mathieu.git","svn_url":"https://github.com/poledev/mathieu","homepage":null,"size":1216,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":31,"forks":0,"open_issues":31,"watchers":0,"default_branch":"master"}},"base":{"label":"poledev:master","ref":"master","sha":"a14d314672a2d2ddc546b36d52686f987e87fd73","user":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"repo":{"id":36651258,"name":"mathieu","full_name":"poledev/mathieu","owner":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/poledev/mathieu","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/mathieu","forks_url":"https://api.github.com/repos/poledev/mathieu/forks","keys_url":"https://api.github.com/repos/poledev/mathieu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/mathieu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/mathieu/teams","hooks_url":"https://api.github.com/repos/poledev/mathieu/hooks","issue_events_url":"https://api.github.com/repos/poledev/mathieu/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/mathieu/events","assignees_url":"https://api.github.com/repos/poledev/mathieu/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/mathieu/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/mathieu/tags","blobs_url":"https://api.github.com/repos/poledev/mathieu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/mathieu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/mathieu/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/mathieu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/mathieu/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/mathieu/languages","stargazers_url":"https://api.github.com/repos/poledev/mathieu/stargazers","contributors_url":"https://api.github.com/repos/poledev/mathieu/contributors","subscribers_url":"https://api.github.com/repos/poledev/mathieu/subscribers","subscription_url":"https://api.github.com/repos/poledev/mathieu/subscription","commits_url":"https://api.github.com/repos/poledev/mathieu/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/mathieu/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/mathieu/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/mathieu/issues/comments{/number}","contents_url":"https://api.github.com/repos/poledev/mathieu/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/mathieu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/mathieu/merges","archive_url":"https://api.github.com/repos/poledev/mathieu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/mathieu/downloads","issues_url":"https://api.github.com/repos/poledev/mathieu/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/mathieu/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/mathieu/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/mathieu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/mathieu/labels{/name}","releases_url":"https://api.github.com/repos/poledev/mathieu/releases{/id}","created_at":"2015-06-01T09:37:39Z","updated_at":"2015-06-01T09:39:33Z","pushed_at":"2015-06-16T13:54:20Z","git_url":"git://github.com/poledev/mathieu.git","ssh_url":"git@github.com:poledev/mathieu.git","clone_url":"https://github.com/poledev/mathieu.git","svn_url":"https://github.com/poledev/mathieu","homepage":null,"size":1216,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":31,"forks":0,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poledev/mathieu/pulls/41"},"html":{"href":"https://github.com/poledev/mathieu/pull/41"},"issue":{"href":"https://api.github.com/repos/poledev/mathieu/issues/41"},"comments":{"href":"https://api.github.com/repos/poledev/mathieu/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/poledev/mathieu/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/poledev/mathieu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poledev/mathieu/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/poledev/mathieu/statuses/eff8e5b6f060f92d3ec157297265e0dfc196ab93"}}}}