{"action":"created","comment":{"url":"https://api.github.com/repos/dandiesta/board_exercise/pulls/comments/24884076","id":24884076,"diff_hunk":"@@ -4,18 +4,35 @@ class AppController extends Controller\n     public $default_view_class = 'AppLayoutView';\n \n     function beforeFilter()\n-\t{\n-\t\t$exclude = array(\n-\t\t\t'user/registration',\n-\t\t\t'user/login',\n-\t\t\t'user/delete',\n-\t\t\t'user/confirmation'\n-\t\t);\n+    {\n+        $exclude = array(\n+            'user/registration',\n+            'user/login',\n+            'user/banned'\n+        );\n \n-\t\tif (in_array(Param::get(DC_ACTION), $exclude)) return;\n+        if (in_array(Param::get(DC_ACTION), $exclude)) return;\n \n-\t\tif (!isset($_SESSION['userid'])) {\n-\t\t    redirect('/user/login');\n-\t\t}\n-\t}\n+        if (!isset($_SESSION['userid'])) {\n+            redirect('/user/login');\n+        } else {\n+            $appmodel = new AppModel();\n+            $checker = $appmodel->currentStatusChecker();\n+\n+            if ($checker == ACTIVE) {\n+                return;\n+            } else {\n+                redirect('/user/banned');\n+            }\n+        }\n+    }\n+\n+    function banned()","path":"app/app_controller.php","position":39,"original_position":39,"commit_id":"d4ceff31b50a4ee2f58abb73caa935ccf9b128e1","original_commit_id":"2daf6c602d66d85e1c07414cb201fc234540c4d9","user":{"login":"dandiesta","id":10084835,"avatar_url":"https://avatars.githubusercontent.com/u/10084835?v=3","gravatar_id":"","url":"https://api.github.com/users/dandiesta","html_url":"https://github.com/dandiesta","followers_url":"https://api.github.com/users/dandiesta/followers","following_url":"https://api.github.com/users/dandiesta/following{/other_user}","gists_url":"https://api.github.com/users/dandiesta/gists{/gist_id}","starred_url":"https://api.github.com/users/dandiesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandiesta/subscriptions","organizations_url":"https://api.github.com/users/dandiesta/orgs","repos_url":"https://api.github.com/users/dandiesta/repos","events_url":"https://api.github.com/users/dandiesta/events{/privacy}","received_events_url":"https://api.github.com/users/dandiesta/received_events","type":"User","site_admin":false},"body":"yes po","created_at":"2015-02-18T08:01:48Z","updated_at":"2015-02-18T08:01:48Z","html_url":"https://github.com/dandiesta/board_exercise/pull/2#discussion_r24884076","pull_request_url":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/dandiesta/board_exercise/pulls/comments/24884076"},"html":{"href":"https://github.com/dandiesta/board_exercise/pull/2#discussion_r24884076"},"pull_request":{"href":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2","id":29150991,"html_url":"https://github.com/dandiesta/board_exercise/pull/2","diff_url":"https://github.com/dandiesta/board_exercise/pull/2.diff","patch_url":"https://github.com/dandiesta/board_exercise/pull/2.patch","issue_url":"https://api.github.com/repos/dandiesta/board_exercise/issues/2","number":2,"state":"open","locked":false,"title":"Pull Request 2","user":{"login":"dandiesta","id":10084835,"avatar_url":"https://avatars.githubusercontent.com/u/10084835?v=3","gravatar_id":"","url":"https://api.github.com/users/dandiesta","html_url":"https://github.com/dandiesta","followers_url":"https://api.github.com/users/dandiesta/followers","following_url":"https://api.github.com/users/dandiesta/following{/other_user}","gists_url":"https://api.github.com/users/dandiesta/gists{/gist_id}","starred_url":"https://api.github.com/users/dandiesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandiesta/subscriptions","organizations_url":"https://api.github.com/users/dandiesta/orgs","repos_url":"https://api.github.com/users/dandiesta/repos","events_url":"https://api.github.com/users/dandiesta/events{/privacy}","received_events_url":"https://api.github.com/users/dandiesta/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-12T03:50:19Z","updated_at":"2015-02-18T08:01:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f93f87db070cb645689bec60d2da4dae386789bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2/commits","review_comments_url":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2/comments","review_comment_url":"https://api.github.com/repos/dandiesta/board_exercise/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dandiesta/board_exercise/issues/2/comments","statuses_url":"https://api.github.com/repos/dandiesta/board_exercise/statuses/d4ceff31b50a4ee2f58abb73caa935ccf9b128e1","head":{"label":"dandiesta:dev_1.1","ref":"dev_1.1","sha":"d4ceff31b50a4ee2f58abb73caa935ccf9b128e1","user":{"login":"dandiesta","id":10084835,"avatar_url":"https://avatars.githubusercontent.com/u/10084835?v=3","gravatar_id":"","url":"https://api.github.com/users/dandiesta","html_url":"https://github.com/dandiesta","followers_url":"https://api.github.com/users/dandiesta/followers","following_url":"https://api.github.com/users/dandiesta/following{/other_user}","gists_url":"https://api.github.com/users/dandiesta/gists{/gist_id}","starred_url":"https://api.github.com/users/dandiesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandiesta/subscriptions","organizations_url":"https://api.github.com/users/dandiesta/orgs","repos_url":"https://api.github.com/users/dandiesta/repos","events_url":"https://api.github.com/users/dandiesta/events{/privacy}","received_events_url":"https://api.github.com/users/dandiesta/received_events","type":"User","site_admin":false},"repo":{"id":29570933,"name":"board_exercise","full_name":"dandiesta/board_exercise","owner":{"login":"dandiesta","id":10084835,"avatar_url":"https://avatars.githubusercontent.com/u/10084835?v=3","gravatar_id":"","url":"https://api.github.com/users/dandiesta","html_url":"https://github.com/dandiesta","followers_url":"https://api.github.com/users/dandiesta/followers","following_url":"https://api.github.com/users/dandiesta/following{/other_user}","gists_url":"https://api.github.com/users/dandiesta/gists{/gist_id}","starred_url":"https://api.github.com/users/dandiesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandiesta/subscriptions","organizations_url":"https://api.github.com/users/dandiesta/orgs","repos_url":"https://api.github.com/users/dandiesta/repos","events_url":"https://api.github.com/users/dandiesta/events{/privacy}","received_events_url":"https://api.github.com/users/dandiesta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dandiesta/board_exercise","description":"","fork":false,"url":"https://api.github.com/repos/dandiesta/board_exercise","forks_url":"https://api.github.com/repos/dandiesta/board_exercise/forks","keys_url":"https://api.github.com/repos/dandiesta/board_exercise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dandiesta/board_exercise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dandiesta/board_exercise/teams","hooks_url":"https://api.github.com/repos/dandiesta/board_exercise/hooks","issue_events_url":"https://api.github.com/repos/dandiesta/board_exercise/issues/events{/number}","events_url":"https://api.github.com/repos/dandiesta/board_exercise/events","assignees_url":"https://api.github.com/repos/dandiesta/board_exercise/assignees{/user}","branches_url":"https://api.github.com/repos/dandiesta/board_exercise/branches{/branch}","tags_url":"https://api.github.com/repos/dandiesta/board_exercise/tags","blobs_url":"https://api.github.com/repos/dandiesta/board_exercise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dandiesta/board_exercise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dandiesta/board_exercise/git/refs{/sha}","trees_url":"https://api.github.com/repos/dandiesta/board_exercise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dandiesta/board_exercise/statuses/{sha}","languages_url":"https://api.github.com/repos/dandiesta/board_exercise/languages","stargazers_url":"https://api.github.com/repos/dandiesta/board_exercise/stargazers","contributors_url":"https://api.github.com/repos/dandiesta/board_exercise/contributors","subscribers_url":"https://api.github.com/repos/dandiesta/board_exercise/subscribers","subscription_url":"https://api.github.com/repos/dandiesta/board_exercise/subscription","commits_url":"https://api.github.com/repos/dandiesta/board_exercise/commits{/sha}","git_commits_url":"https://api.github.com/repos/dandiesta/board_exercise/git/commits{/sha}","comments_url":"https://api.github.com/repos/dandiesta/board_exercise/comments{/number}","issue_comment_url":"https://api.github.com/repos/dandiesta/board_exercise/issues/comments/{number}","contents_url":"https://api.github.com/repos/dandiesta/board_exercise/contents/{+path}","compare_url":"https://api.github.com/repos/dandiesta/board_exercise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dandiesta/board_exercise/merges","archive_url":"https://api.github.com/repos/dandiesta/board_exercise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dandiesta/board_exercise/downloads","issues_url":"https://api.github.com/repos/dandiesta/board_exercise/issues{/number}","pulls_url":"https://api.github.com/repos/dandiesta/board_exercise/pulls{/number}","milestones_url":"https://api.github.com/repos/dandiesta/board_exercise/milestones{/number}","notifications_url":"https://api.github.com/repos/dandiesta/board_exercise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dandiesta/board_exercise/labels{/name}","releases_url":"https://api.github.com/repos/dandiesta/board_exercise/releases{/id}","created_at":"2015-01-21T04:19:36Z","updated_at":"2015-02-18T07:15:30Z","pushed_at":"2015-02-18T07:15:30Z","git_url":"git://github.com/dandiesta/board_exercise.git","ssh_url":"git@github.com:dandiesta/board_exercise.git","clone_url":"https://github.com/dandiesta/board_exercise.git","svn_url":"https://github.com/dandiesta/board_exercise","homepage":null,"size":9272,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev_1.1"}},"base":{"label":"dandiesta:master","ref":"master","sha":"9d2e02b4f8c2b4ac828a82f501a4a61bfcc8bf98","user":{"login":"dandiesta","id":10084835,"avatar_url":"https://avatars.githubusercontent.com/u/10084835?v=3","gravatar_id":"","url":"https://api.github.com/users/dandiesta","html_url":"https://github.com/dandiesta","followers_url":"https://api.github.com/users/dandiesta/followers","following_url":"https://api.github.com/users/dandiesta/following{/other_user}","gists_url":"https://api.github.com/users/dandiesta/gists{/gist_id}","starred_url":"https://api.github.com/users/dandiesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandiesta/subscriptions","organizations_url":"https://api.github.com/users/dandiesta/orgs","repos_url":"https://api.github.com/users/dandiesta/repos","events_url":"https://api.github.com/users/dandiesta/events{/privacy}","received_events_url":"https://api.github.com/users/dandiesta/received_events","type":"User","site_admin":false},"repo":{"id":29570933,"name":"board_exercise","full_name":"dandiesta/board_exercise","owner":{"login":"dandiesta","id":10084835,"avatar_url":"https://avatars.githubusercontent.com/u/10084835?v=3","gravatar_id":"","url":"https://api.github.com/users/dandiesta","html_url":"https://github.com/dandiesta","followers_url":"https://api.github.com/users/dandiesta/followers","following_url":"https://api.github.com/users/dandiesta/following{/other_user}","gists_url":"https://api.github.com/users/dandiesta/gists{/gist_id}","starred_url":"https://api.github.com/users/dandiesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandiesta/subscriptions","organizations_url":"https://api.github.com/users/dandiesta/orgs","repos_url":"https://api.github.com/users/dandiesta/repos","events_url":"https://api.github.com/users/dandiesta/events{/privacy}","received_events_url":"https://api.github.com/users/dandiesta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dandiesta/board_exercise","description":"","fork":false,"url":"https://api.github.com/repos/dandiesta/board_exercise","forks_url":"https://api.github.com/repos/dandiesta/board_exercise/forks","keys_url":"https://api.github.com/repos/dandiesta/board_exercise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dandiesta/board_exercise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dandiesta/board_exercise/teams","hooks_url":"https://api.github.com/repos/dandiesta/board_exercise/hooks","issue_events_url":"https://api.github.com/repos/dandiesta/board_exercise/issues/events{/number}","events_url":"https://api.github.com/repos/dandiesta/board_exercise/events","assignees_url":"https://api.github.com/repos/dandiesta/board_exercise/assignees{/user}","branches_url":"https://api.github.com/repos/dandiesta/board_exercise/branches{/branch}","tags_url":"https://api.github.com/repos/dandiesta/board_exercise/tags","blobs_url":"https://api.github.com/repos/dandiesta/board_exercise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dandiesta/board_exercise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dandiesta/board_exercise/git/refs{/sha}","trees_url":"https://api.github.com/repos/dandiesta/board_exercise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dandiesta/board_exercise/statuses/{sha}","languages_url":"https://api.github.com/repos/dandiesta/board_exercise/languages","stargazers_url":"https://api.github.com/repos/dandiesta/board_exercise/stargazers","contributors_url":"https://api.github.com/repos/dandiesta/board_exercise/contributors","subscribers_url":"https://api.github.com/repos/dandiesta/board_exercise/subscribers","subscription_url":"https://api.github.com/repos/dandiesta/board_exercise/subscription","commits_url":"https://api.github.com/repos/dandiesta/board_exercise/commits{/sha}","git_commits_url":"https://api.github.com/repos/dandiesta/board_exercise/git/commits{/sha}","comments_url":"https://api.github.com/repos/dandiesta/board_exercise/comments{/number}","issue_comment_url":"https://api.github.com/repos/dandiesta/board_exercise/issues/comments/{number}","contents_url":"https://api.github.com/repos/dandiesta/board_exercise/contents/{+path}","compare_url":"https://api.github.com/repos/dandiesta/board_exercise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dandiesta/board_exercise/merges","archive_url":"https://api.github.com/repos/dandiesta/board_exercise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dandiesta/board_exercise/downloads","issues_url":"https://api.github.com/repos/dandiesta/board_exercise/issues{/number}","pulls_url":"https://api.github.com/repos/dandiesta/board_exercise/pulls{/number}","milestones_url":"https://api.github.com/repos/dandiesta/board_exercise/milestones{/number}","notifications_url":"https://api.github.com/repos/dandiesta/board_exercise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dandiesta/board_exercise/labels{/name}","releases_url":"https://api.github.com/repos/dandiesta/board_exercise/releases{/id}","created_at":"2015-01-21T04:19:36Z","updated_at":"2015-02-18T07:15:30Z","pushed_at":"2015-02-18T07:15:30Z","git_url":"git://github.com/dandiesta/board_exercise.git","ssh_url":"git@github.com:dandiesta/board_exercise.git","clone_url":"https://github.com/dandiesta/board_exercise.git","svn_url":"https://github.com/dandiesta/board_exercise","homepage":null,"size":9272,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev_1.1"}},"_links":{"self":{"href":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2"},"html":{"href":"https://github.com/dandiesta/board_exercise/pull/2"},"issue":{"href":"https://api.github.com/repos/dandiesta/board_exercise/issues/2"},"comments":{"href":"https://api.github.com/repos/dandiesta/board_exercise/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/dandiesta/board_exercise/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dandiesta/board_exercise/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/dandiesta/board_exercise/statuses/d4ceff31b50a4ee2f58abb73caa935ccf9b128e1"}}}}