{"action":"created","issue":{"url":"https://api.github.com/repos/CircleAround/gbs/issues/55","labels_url":"https://api.github.com/repos/CircleAround/gbs/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/CircleAround/gbs/issues/55/comments","events_url":"https://api.github.com/repos/CircleAround/gbs/issues/55/events","html_url":"https://github.com/CircleAround/gbs/issues/55","id":109035175,"number":55,"title":"ログインしていないと入れない画面を弾く実装","user":{"login":"ms2sato","id":627817,"avatar_url":"https://avatars.githubusercontent.com/u/627817?v=3","gravatar_id":"","url":"https://api.github.com/users/ms2sato","html_url":"https://github.com/ms2sato","followers_url":"https://api.github.com/users/ms2sato/followers","following_url":"https://api.github.com/users/ms2sato/following{/other_user}","gists_url":"https://api.github.com/users/ms2sato/gists{/gist_id}","starred_url":"https://api.github.com/users/ms2sato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms2sato/subscriptions","organizations_url":"https://api.github.com/users/ms2sato/orgs","repos_url":"https://api.github.com/users/ms2sato/repos","events_url":"https://api.github.com/users/ms2sato/events{/privacy}","received_events_url":"https://api.github.com/users/ms2sato/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CircleAround/gbs/labels/Doing","name":"Doing","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"Kojima87","id":13011927,"avatar_url":"https://avatars.githubusercontent.com/u/13011927?v=3","gravatar_id":"","url":"https://api.github.com/users/Kojima87","html_url":"https://github.com/Kojima87","followers_url":"https://api.github.com/users/Kojima87/followers","following_url":"https://api.github.com/users/Kojima87/following{/other_user}","gists_url":"https://api.github.com/users/Kojima87/gists{/gist_id}","starred_url":"https://api.github.com/users/Kojima87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kojima87/subscriptions","organizations_url":"https://api.github.com/users/Kojima87/orgs","repos_url":"https://api.github.com/users/Kojima87/repos","events_url":"https://api.github.com/users/Kojima87/events{/privacy}","received_events_url":"https://api.github.com/users/Kojima87/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-30T07:55:19Z","updated_at":"2015-12-14T08:50:24Z","closed_at":null,"body":"#53 が終わったらやること\r\n\r\n- [ ] ログインしていない人が特定の画面に入ろうとしたり、POSTしようとしたりした時に拒絶できる仕組みを調べる。\r\n- [ ] 上記を利用して実装を入れる（今は入っていけない画面は殆ど無いので、サンプル的な実装が欲しいです）。"},"comment":{"url":"https://api.github.com/repos/CircleAround/gbs/issues/comments/164380479","html_url":"https://github.com/CircleAround/gbs/issues/55#issuecomment-164380479","issue_url":"https://api.github.com/repos/CircleAround/gbs/issues/55","id":164380479,"user":{"login":"Kojima87","id":13011927,"avatar_url":"https://avatars.githubusercontent.com/u/13011927?v=3","gravatar_id":"","url":"https://api.github.com/users/Kojima87","html_url":"https://github.com/Kojima87","followers_url":"https://api.github.com/users/Kojima87/followers","following_url":"https://api.github.com/users/Kojima87/following{/other_user}","gists_url":"https://api.github.com/users/Kojima87/gists{/gist_id}","starred_url":"https://api.github.com/users/Kojima87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kojima87/subscriptions","organizations_url":"https://api.github.com/users/Kojima87/orgs","repos_url":"https://api.github.com/users/Kojima87/repos","events_url":"https://api.github.com/users/Kojima87/events{/privacy}","received_events_url":"https://api.github.com/users/Kojima87/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T08:50:24Z","updated_at":"2015-12-14T08:50:24Z","body":"@ms2sato 現在、以下を見ています。全然違っていましたら、ご指摘いただけると大変助かります。\r\n\r\nAuthComponent::allow()を使って、許可するアクションを設定、または、\r\nAuthComponent::deny()を使って、許可しないアクションを設定する。\r\nたとえば、Controller内で、\r\n    public function beforeFilter(Event $event)\r\n    {\r\n        parent::beforeFilter($event);\r\n        $this->Auth->allow(‘view’);\r\n    }\r\n\r\nどういうふうに動作するのかわかっていません。\r\nそして、ここでログインしていなかったらログイン画面にリダイレクトする？\r\n・・・中途半端ですみません。"}}