{"action":"opened","number":12785,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/12785","id":90029825,"html_url":"https://github.com/yiisoft/yii2/pull/12785","diff_url":"https://github.com/yiisoft/yii2/pull/12785.diff","patch_url":"https://github.com/yiisoft/yii2/pull/12785.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12785","number":12785,"state":"open","locked":false,"title":"refs #12771 \\yii\\web\\User::can() and guest","user":{"login":"Ni-san","id":11299467,"avatar_url":"https://avatars.githubusercontent.com/u/11299467?v=3","gravatar_id":"","url":"https://api.github.com/users/Ni-san","html_url":"https://github.com/Ni-san","followers_url":"https://api.github.com/users/Ni-san/followers","following_url":"https://api.github.com/users/Ni-san/following{/other_user}","gists_url":"https://api.github.com/users/Ni-san/gists{/gist_id}","starred_url":"https://api.github.com/users/Ni-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ni-san/subscriptions","organizations_url":"https://api.github.com/users/Ni-san/orgs","repos_url":"https://api.github.com/users/Ni-san/repos","events_url":"https://api.github.com/users/Ni-san/events{/privacy}","received_events_url":"https://api.github.com/users/Ni-san/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Is bugfix?    | no\r\n| New feature?  | no\r\n| Breaks BC?    | no\r\n| Tests pass?   | yes\r\n| Fixed issues  | #12771 \r\n\r\nSkip \\yii\\rbac\\PhpManager::checkAccessRecursive and \\yii\\rbac\\DbManager::checkAccessRecursive if role assignments are empty.\r\nI checked code of `\\yii\\rbac\\PhpManager::checkAccessRecursive` and `\\yii\\rbac\\DbManager::checkAccessRecursive`, and I'm sure that result always will be \"false\" if `$assignments` is empty array and `\\yii\\rbac\\BaseManager::$defaultRoles` is empty array too.\r\nOn the other hand, I'm not sure it matters.","created_at":"2016-10-19T15:10:59Z","updated_at":"2016-10-19T15:10:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8974ed5e79b921184953d4248a7c6ccfa6c0a56","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii2/pulls/12785/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2/pulls/12785/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12785/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/2591c34786c965fa2f92cce2cc5701509c28b5a8","head":{"label":"Ni-san:12771_optimize_check_access_on_guest","ref":"12771_optimize_check_access_on_guest","sha":"2591c34786c965fa2f92cce2cc5701509c28b5a8","user":{"login":"Ni-san","id":11299467,"avatar_url":"https://avatars.githubusercontent.com/u/11299467?v=3","gravatar_id":"","url":"https://api.github.com/users/Ni-san","html_url":"https://github.com/Ni-san","followers_url":"https://api.github.com/users/Ni-san/followers","following_url":"https://api.github.com/users/Ni-san/following{/other_user}","gists_url":"https://api.github.com/users/Ni-san/gists{/gist_id}","starred_url":"https://api.github.com/users/Ni-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ni-san/subscriptions","organizations_url":"https://api.github.com/users/Ni-san/orgs","repos_url":"https://api.github.com/users/Ni-san/repos","events_url":"https://api.github.com/users/Ni-san/events{/privacy}","received_events_url":"https://api.github.com/users/Ni-san/received_events","type":"User","site_admin":false},"repo":{"id":52853723,"name":"yii2","full_name":"Ni-san/yii2","owner":{"login":"Ni-san","id":11299467,"avatar_url":"https://avatars.githubusercontent.com/u/11299467?v=3","gravatar_id":"","url":"https://api.github.com/users/Ni-san","html_url":"https://github.com/Ni-san","followers_url":"https://api.github.com/users/Ni-san/followers","following_url":"https://api.github.com/users/Ni-san/following{/other_user}","gists_url":"https://api.github.com/users/Ni-san/gists{/gist_id}","starred_url":"https://api.github.com/users/Ni-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ni-san/subscriptions","organizations_url":"https://api.github.com/users/Ni-san/orgs","repos_url":"https://api.github.com/users/Ni-san/repos","events_url":"https://api.github.com/users/Ni-san/events{/privacy}","received_events_url":"https://api.github.com/users/Ni-san/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ni-san/yii2","description":"Yii 2 framework main development repo","fork":true,"url":"https://api.github.com/repos/Ni-san/yii2","forks_url":"https://api.github.com/repos/Ni-san/yii2/forks","keys_url":"https://api.github.com/repos/Ni-san/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ni-san/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ni-san/yii2/teams","hooks_url":"https://api.github.com/repos/Ni-san/yii2/hooks","issue_events_url":"https://api.github.com/repos/Ni-san/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/Ni-san/yii2/events","assignees_url":"https://api.github.com/repos/Ni-san/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/Ni-san/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/Ni-san/yii2/tags","blobs_url":"https://api.github.com/repos/Ni-san/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ni-san/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ni-san/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ni-san/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ni-san/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/Ni-san/yii2/languages","stargazers_url":"https://api.github.com/repos/Ni-san/yii2/stargazers","contributors_url":"https://api.github.com/repos/Ni-san/yii2/contributors","subscribers_url":"https://api.github.com/repos/Ni-san/yii2/subscribers","subscription_url":"https://api.github.com/repos/Ni-san/yii2/subscription","commits_url":"https://api.github.com/repos/Ni-san/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ni-san/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ni-san/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ni-san/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ni-san/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/Ni-san/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ni-san/yii2/merges","archive_url":"https://api.github.com/repos/Ni-san/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ni-san/yii2/downloads","issues_url":"https://api.github.com/repos/Ni-san/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/Ni-san/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/Ni-san/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/Ni-san/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ni-san/yii2/labels{/name}","releases_url":"https://api.github.com/repos/Ni-san/yii2/releases{/id}","deployments_url":"https://api.github.com/repos/Ni-san/yii2/deployments","created_at":"2016-03-01T06:27:16Z","updated_at":"2016-03-01T06:27:19Z","pushed_at":"2016-10-19T15:05:16Z","git_url":"git://github.com/Ni-san/yii2.git","ssh_url":"git@github.com:Ni-san/yii2.git","clone_url":"https://github.com/Ni-san/yii2.git","svn_url":"https://github.com/Ni-san/yii2","homepage":"http://www.yiiframework.com","size":39954,"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":"yiisoft:master","ref":"master","sha":"8a452bcc2e9720be52ff08ca36bd6eff42eb9f4e","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3431193,"name":"yii2","full_name":"yiisoft/yii2","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2","description":"Yii 2 framework main development repo","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2","forks_url":"https://api.github.com/repos/yiisoft/yii2/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2/releases{/id}","deployments_url":"https://api.github.com/repos/yiisoft/yii2/deployments","created_at":"2012-02-13T15:32:36Z","updated_at":"2016-10-19T14:32:45Z","pushed_at":"2016-10-19T15:10:59Z","git_url":"git://github.com/yiisoft/yii2.git","ssh_url":"git@github.com:yiisoft/yii2.git","clone_url":"https://github.com/yiisoft/yii2.git","svn_url":"https://github.com/yiisoft/yii2","homepage":"http://www.yiiframework.com","size":64099,"stargazers_count":8880,"watchers_count":8880,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5170,"mirror_url":null,"open_issues_count":963,"forks":5170,"open_issues":963,"watchers":8880,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/12785"},"html":{"href":"https://github.com/yiisoft/yii2/pull/12785"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/12785"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/12785/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/12785/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/12785/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2/statuses/2591c34786c965fa2f92cce2cc5701509c28b5a8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":34,"deletions":0,"changed_files":5}}
{"actor":{"display_login":"Ni-san"}}