{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/6","id":50669334,"html_url":"https://github.com/laravel/quickstart-intermediate/pull/6","diff_url":"https://github.com/laravel/quickstart-intermediate/pull/6.diff","patch_url":"https://github.com/laravel/quickstart-intermediate/pull/6.patch","issue_url":"https://api.github.com/repos/laravel/quickstart-intermediate/issues/6","number":6,"state":"open","locked":false,"title":"Only compare value when authorizing delete request","user":{"login":"zOxta","id":2760582,"avatar_url":"https://avatars.githubusercontent.com/u/2760582?v=3","gravatar_id":"","url":"https://api.github.com/users/zOxta","html_url":"https://github.com/zOxta","followers_url":"https://api.github.com/users/zOxta/followers","following_url":"https://api.github.com/users/zOxta/following{/other_user}","gists_url":"https://api.github.com/users/zOxta/gists{/gist_id}","starred_url":"https://api.github.com/users/zOxta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zOxta/subscriptions","organizations_url":"https://api.github.com/users/zOxta/orgs","repos_url":"https://api.github.com/users/zOxta/repos","events_url":"https://api.github.com/users/zOxta/events{/privacy}","received_events_url":"https://api.github.com/users/zOxta/received_events","type":"User","site_admin":false},"body":"Sometimes, $user->id will be an integer while $task->user_id will be a string (was the case when running tests for me). Thus, even though you are deleting a task the belongs to you, the check will return false.","created_at":"2015-11-13T17:40:07Z","updated_at":"2015-11-13T17:40:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/6/commits","review_comments_url":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/6/comments","review_comment_url":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/quickstart-intermediate/issues/6/comments","statuses_url":"https://api.github.com/repos/laravel/quickstart-intermediate/statuses/6f6108ee66a5e9a5691ad4d5338bba4df3aea2af","head":{"label":"zOxta:patch-1","ref":"patch-1","sha":"6f6108ee66a5e9a5691ad4d5338bba4df3aea2af","user":{"login":"zOxta","id":2760582,"avatar_url":"https://avatars.githubusercontent.com/u/2760582?v=3","gravatar_id":"","url":"https://api.github.com/users/zOxta","html_url":"https://github.com/zOxta","followers_url":"https://api.github.com/users/zOxta/followers","following_url":"https://api.github.com/users/zOxta/following{/other_user}","gists_url":"https://api.github.com/users/zOxta/gists{/gist_id}","starred_url":"https://api.github.com/users/zOxta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zOxta/subscriptions","organizations_url":"https://api.github.com/users/zOxta/orgs","repos_url":"https://api.github.com/users/zOxta/repos","events_url":"https://api.github.com/users/zOxta/events{/privacy}","received_events_url":"https://api.github.com/users/zOxta/received_events","type":"User","site_admin":false},"repo":{"id":46137200,"name":"quickstart-intermediate","full_name":"zOxta/quickstart-intermediate","owner":{"login":"zOxta","id":2760582,"avatar_url":"https://avatars.githubusercontent.com/u/2760582?v=3","gravatar_id":"","url":"https://api.github.com/users/zOxta","html_url":"https://github.com/zOxta","followers_url":"https://api.github.com/users/zOxta/followers","following_url":"https://api.github.com/users/zOxta/following{/other_user}","gists_url":"https://api.github.com/users/zOxta/gists{/gist_id}","starred_url":"https://api.github.com/users/zOxta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zOxta/subscriptions","organizations_url":"https://api.github.com/users/zOxta/orgs","repos_url":"https://api.github.com/users/zOxta/repos","events_url":"https://api.github.com/users/zOxta/events{/privacy}","received_events_url":"https://api.github.com/users/zOxta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zOxta/quickstart-intermediate","description":"A sample task list application with authentication.","fork":true,"url":"https://api.github.com/repos/zOxta/quickstart-intermediate","forks_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/forks","keys_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/teams","hooks_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/hooks","issue_events_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/issues/events{/number}","events_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/events","assignees_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/assignees{/user}","branches_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/branches{/branch}","tags_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/tags","blobs_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/git/refs{/sha}","trees_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/statuses/{sha}","languages_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/languages","stargazers_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/stargazers","contributors_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/contributors","subscribers_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/subscribers","subscription_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/subscription","commits_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/commits{/sha}","git_commits_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/git/commits{/sha}","comments_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/comments{/number}","issue_comment_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/issues/comments{/number}","contents_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/contents/{+path}","compare_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/merges","archive_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/downloads","issues_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/issues{/number}","pulls_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/pulls{/number}","milestones_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/milestones{/number}","notifications_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/labels{/name}","releases_url":"https://api.github.com/repos/zOxta/quickstart-intermediate/releases{/id}","created_at":"2015-11-13T17:34:17Z","updated_at":"2015-11-13T17:34:18Z","pushed_at":"2015-11-13T17:39:52Z","git_url":"git://github.com/zOxta/quickstart-intermediate.git","ssh_url":"git@github.com:zOxta/quickstart-intermediate.git","clone_url":"https://github.com/zOxta/quickstart-intermediate.git","svn_url":"https://github.com/zOxta/quickstart-intermediate","homepage":"http://laravel.com/docs/quickstart-intermediate","size":177,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"laravel:master","ref":"master","sha":"8c9e3c5ea39d3b91a48cdf122fcab61b379a4a0f","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":45131968,"name":"quickstart-intermediate","full_name":"laravel/quickstart-intermediate","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/quickstart-intermediate","description":"A sample task list application with authentication.","fork":false,"url":"https://api.github.com/repos/laravel/quickstart-intermediate","forks_url":"https://api.github.com/repos/laravel/quickstart-intermediate/forks","keys_url":"https://api.github.com/repos/laravel/quickstart-intermediate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/quickstart-intermediate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/quickstart-intermediate/teams","hooks_url":"https://api.github.com/repos/laravel/quickstart-intermediate/hooks","issue_events_url":"https://api.github.com/repos/laravel/quickstart-intermediate/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/quickstart-intermediate/events","assignees_url":"https://api.github.com/repos/laravel/quickstart-intermediate/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/quickstart-intermediate/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/quickstart-intermediate/tags","blobs_url":"https://api.github.com/repos/laravel/quickstart-intermediate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/quickstart-intermediate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/quickstart-intermediate/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/quickstart-intermediate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/quickstart-intermediate/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/quickstart-intermediate/languages","stargazers_url":"https://api.github.com/repos/laravel/quickstart-intermediate/stargazers","contributors_url":"https://api.github.com/repos/laravel/quickstart-intermediate/contributors","subscribers_url":"https://api.github.com/repos/laravel/quickstart-intermediate/subscribers","subscription_url":"https://api.github.com/repos/laravel/quickstart-intermediate/subscription","commits_url":"https://api.github.com/repos/laravel/quickstart-intermediate/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/quickstart-intermediate/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/quickstart-intermediate/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/quickstart-intermediate/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/quickstart-intermediate/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/quickstart-intermediate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/quickstart-intermediate/merges","archive_url":"https://api.github.com/repos/laravel/quickstart-intermediate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/quickstart-intermediate/downloads","issues_url":"https://api.github.com/repos/laravel/quickstart-intermediate/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/quickstart-intermediate/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/quickstart-intermediate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/quickstart-intermediate/labels{/name}","releases_url":"https://api.github.com/repos/laravel/quickstart-intermediate/releases{/id}","created_at":"2015-10-28T18:02:10Z","updated_at":"2015-11-13T08:32:25Z","pushed_at":"2015-11-06T15:27:21Z","git_url":"git://github.com/laravel/quickstart-intermediate.git","ssh_url":"git@github.com:laravel/quickstart-intermediate.git","clone_url":"https://github.com/laravel/quickstart-intermediate.git","svn_url":"https://github.com/laravel/quickstart-intermediate","homepage":"http://laravel.com/docs/quickstart-intermediate","size":177,"stargazers_count":48,"watchers_count":48,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":3,"forks":24,"open_issues":3,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/6"},"html":{"href":"https://github.com/laravel/quickstart-intermediate/pull/6"},"issue":{"href":"https://api.github.com/repos/laravel/quickstart-intermediate/issues/6"},"comments":{"href":"https://api.github.com/repos/laravel/quickstart-intermediate/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/quickstart-intermediate/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/quickstart-intermediate/statuses/6f6108ee66a5e9a5691ad4d5338bba4df3aea2af"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}