{"action":"created","comment":{"url":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/comments/76939045","id":76939045,"diff_hunk":"@@ -86,6 +86,14 @@\n \t\t\t\t\t\t<i class=\"fa fa-question\"></i>\n \t\t\t\t\t</a>\n \t\t\t\t</li>\n+\t\t\t\t<?php if($view->current_member->load('user_group')->equals(Model_UsersGroups::getById(Model_UsersGroups::ADMINS_ID))): ?>","path":"application/views/index/header.php","position":4,"original_position":4,"commit_id":"5f7068fe047bce9f8e458368e9ede1f9536d79dc","original_commit_id":"5f7068fe047bce9f8e458368e9ede1f9536d79dc","user":{"login":"adrien-gueret","id":1508585,"avatar_url":"https://avatars.githubusercontent.com/u/1508585?v=3","gravatar_id":"","url":"https://api.github.com/users/adrien-gueret","html_url":"https://github.com/adrien-gueret","followers_url":"https://api.github.com/users/adrien-gueret/followers","following_url":"https://api.github.com/users/adrien-gueret/following{/other_user}","gists_url":"https://api.github.com/users/adrien-gueret/gists{/gist_id}","starred_url":"https://api.github.com/users/adrien-gueret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrien-gueret/subscriptions","organizations_url":"https://api.github.com/users/adrien-gueret/orgs","repos_url":"https://api.github.com/users/adrien-gueret/repos","events_url":"https://api.github.com/users/adrien-gueret/events{/privacy}","received_events_url":"https://api.github.com/users/adrien-gueret/received_events","type":"User","site_admin":false},"body":"Ne jamais faire d'appels aux modèles directement depuis la vue. C'est le rôle des contrôlleurs de faire :)\r\n\r\nEt idem que précédement, utiliser une permission serait plus adapté.","created_at":"2016-08-31T07:47:05Z","updated_at":"2016-08-31T07:47:05Z","html_url":"https://github.com/adrien-gueret/ShyComics/pull/55#discussion_r76939045","pull_request_url":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/comments/76939045"},"html":{"href":"https://github.com/adrien-gueret/ShyComics/pull/55#discussion_r76939045"},"pull_request":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55","id":83181826,"html_url":"https://github.com/adrien-gueret/ShyComics/pull/55","diff_url":"https://github.com/adrien-gueret/ShyComics/pull/55.diff","patch_url":"https://github.com/adrien-gueret/ShyComics/pull/55.patch","issue_url":"https://api.github.com/repos/adrien-gueret/ShyComics/issues/55","number":55,"state":"open","locked":false,"title":"Creation of admin system","user":{"login":"Tatane58","id":8404562,"avatar_url":"https://avatars.githubusercontent.com/u/8404562?v=3","gravatar_id":"","url":"https://api.github.com/users/Tatane58","html_url":"https://github.com/Tatane58","followers_url":"https://api.github.com/users/Tatane58/followers","following_url":"https://api.github.com/users/Tatane58/following{/other_user}","gists_url":"https://api.github.com/users/Tatane58/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatane58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatane58/subscriptions","organizations_url":"https://api.github.com/users/Tatane58/orgs","repos_url":"https://api.github.com/users/Tatane58/repos","events_url":"https://api.github.com/users/Tatane58/events{/privacy}","received_events_url":"https://api.github.com/users/Tatane58/received_events","type":"User","site_admin":false},"body":"Proposition : on devrait faire un système de tokens pour éviter qu'un admin effectue des actions malgré lui.\r\nMais je pense plus que j'aurai le temps de le faire, ceci est sûrement ma dernière vraie PR.","created_at":"2016-08-29T22:53:42Z","updated_at":"2016-08-31T07:47:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81ba2e18a88bd53f5a181e9ce3e62f5c9db1af14","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55/commits","review_comments_url":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55/comments","review_comment_url":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adrien-gueret/ShyComics/issues/55/comments","statuses_url":"https://api.github.com/repos/adrien-gueret/ShyComics/statuses/5f7068fe047bce9f8e458368e9ede1f9536d79dc","head":{"label":"Tatane58:feat-admin","ref":"feat-admin","sha":"5f7068fe047bce9f8e458368e9ede1f9536d79dc","user":{"login":"Tatane58","id":8404562,"avatar_url":"https://avatars.githubusercontent.com/u/8404562?v=3","gravatar_id":"","url":"https://api.github.com/users/Tatane58","html_url":"https://github.com/Tatane58","followers_url":"https://api.github.com/users/Tatane58/followers","following_url":"https://api.github.com/users/Tatane58/following{/other_user}","gists_url":"https://api.github.com/users/Tatane58/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatane58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatane58/subscriptions","organizations_url":"https://api.github.com/users/Tatane58/orgs","repos_url":"https://api.github.com/users/Tatane58/repos","events_url":"https://api.github.com/users/Tatane58/events{/privacy}","received_events_url":"https://api.github.com/users/Tatane58/received_events","type":"User","site_admin":false},"repo":{"id":23078461,"name":"ShyComics","full_name":"Tatane58/ShyComics","owner":{"login":"Tatane58","id":8404562,"avatar_url":"https://avatars.githubusercontent.com/u/8404562?v=3","gravatar_id":"","url":"https://api.github.com/users/Tatane58","html_url":"https://github.com/Tatane58","followers_url":"https://api.github.com/users/Tatane58/followers","following_url":"https://api.github.com/users/Tatane58/following{/other_user}","gists_url":"https://api.github.com/users/Tatane58/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatane58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatane58/subscriptions","organizations_url":"https://api.github.com/users/Tatane58/orgs","repos_url":"https://api.github.com/users/Tatane58/repos","events_url":"https://api.github.com/users/Tatane58/events{/privacy}","received_events_url":"https://api.github.com/users/Tatane58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tatane58/ShyComics","description":"Let's start the new version of Shy'Comics!","fork":true,"url":"https://api.github.com/repos/Tatane58/ShyComics","forks_url":"https://api.github.com/repos/Tatane58/ShyComics/forks","keys_url":"https://api.github.com/repos/Tatane58/ShyComics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tatane58/ShyComics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tatane58/ShyComics/teams","hooks_url":"https://api.github.com/repos/Tatane58/ShyComics/hooks","issue_events_url":"https://api.github.com/repos/Tatane58/ShyComics/issues/events{/number}","events_url":"https://api.github.com/repos/Tatane58/ShyComics/events","assignees_url":"https://api.github.com/repos/Tatane58/ShyComics/assignees{/user}","branches_url":"https://api.github.com/repos/Tatane58/ShyComics/branches{/branch}","tags_url":"https://api.github.com/repos/Tatane58/ShyComics/tags","blobs_url":"https://api.github.com/repos/Tatane58/ShyComics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tatane58/ShyComics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tatane58/ShyComics/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tatane58/ShyComics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tatane58/ShyComics/statuses/{sha}","languages_url":"https://api.github.com/repos/Tatane58/ShyComics/languages","stargazers_url":"https://api.github.com/repos/Tatane58/ShyComics/stargazers","contributors_url":"https://api.github.com/repos/Tatane58/ShyComics/contributors","subscribers_url":"https://api.github.com/repos/Tatane58/ShyComics/subscribers","subscription_url":"https://api.github.com/repos/Tatane58/ShyComics/subscription","commits_url":"https://api.github.com/repos/Tatane58/ShyComics/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tatane58/ShyComics/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tatane58/ShyComics/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tatane58/ShyComics/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tatane58/ShyComics/contents/{+path}","compare_url":"https://api.github.com/repos/Tatane58/ShyComics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tatane58/ShyComics/merges","archive_url":"https://api.github.com/repos/Tatane58/ShyComics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tatane58/ShyComics/downloads","issues_url":"https://api.github.com/repos/Tatane58/ShyComics/issues{/number}","pulls_url":"https://api.github.com/repos/Tatane58/ShyComics/pulls{/number}","milestones_url":"https://api.github.com/repos/Tatane58/ShyComics/milestones{/number}","notifications_url":"https://api.github.com/repos/Tatane58/ShyComics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tatane58/ShyComics/labels{/name}","releases_url":"https://api.github.com/repos/Tatane58/ShyComics/releases{/id}","deployments_url":"https://api.github.com/repos/Tatane58/ShyComics/deployments","created_at":"2014-08-18T16:32:05Z","updated_at":"2016-07-11T21:38:14Z","pushed_at":"2016-08-30T11:12:35Z","git_url":"git://github.com/Tatane58/ShyComics.git","ssh_url":"git@github.com:Tatane58/ShyComics.git","clone_url":"https://github.com/Tatane58/ShyComics.git","svn_url":"https://github.com/Tatane58/ShyComics","homepage":null,"size":1099,"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":"adrien-gueret:master","ref":"master","sha":"4d32efd4f6ed2d56391ea5b061243c364eb93e5c","user":{"login":"adrien-gueret","id":1508585,"avatar_url":"https://avatars.githubusercontent.com/u/1508585?v=3","gravatar_id":"","url":"https://api.github.com/users/adrien-gueret","html_url":"https://github.com/adrien-gueret","followers_url":"https://api.github.com/users/adrien-gueret/followers","following_url":"https://api.github.com/users/adrien-gueret/following{/other_user}","gists_url":"https://api.github.com/users/adrien-gueret/gists{/gist_id}","starred_url":"https://api.github.com/users/adrien-gueret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrien-gueret/subscriptions","organizations_url":"https://api.github.com/users/adrien-gueret/orgs","repos_url":"https://api.github.com/users/adrien-gueret/repos","events_url":"https://api.github.com/users/adrien-gueret/events{/privacy}","received_events_url":"https://api.github.com/users/adrien-gueret/received_events","type":"User","site_admin":false},"repo":{"id":22785420,"name":"ShyComics","full_name":"adrien-gueret/ShyComics","owner":{"login":"adrien-gueret","id":1508585,"avatar_url":"https://avatars.githubusercontent.com/u/1508585?v=3","gravatar_id":"","url":"https://api.github.com/users/adrien-gueret","html_url":"https://github.com/adrien-gueret","followers_url":"https://api.github.com/users/adrien-gueret/followers","following_url":"https://api.github.com/users/adrien-gueret/following{/other_user}","gists_url":"https://api.github.com/users/adrien-gueret/gists{/gist_id}","starred_url":"https://api.github.com/users/adrien-gueret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrien-gueret/subscriptions","organizations_url":"https://api.github.com/users/adrien-gueret/orgs","repos_url":"https://api.github.com/users/adrien-gueret/repos","events_url":"https://api.github.com/users/adrien-gueret/events{/privacy}","received_events_url":"https://api.github.com/users/adrien-gueret/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adrien-gueret/ShyComics","description":"Let's start the new version of Shy'Comics!","fork":false,"url":"https://api.github.com/repos/adrien-gueret/ShyComics","forks_url":"https://api.github.com/repos/adrien-gueret/ShyComics/forks","keys_url":"https://api.github.com/repos/adrien-gueret/ShyComics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adrien-gueret/ShyComics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adrien-gueret/ShyComics/teams","hooks_url":"https://api.github.com/repos/adrien-gueret/ShyComics/hooks","issue_events_url":"https://api.github.com/repos/adrien-gueret/ShyComics/issues/events{/number}","events_url":"https://api.github.com/repos/adrien-gueret/ShyComics/events","assignees_url":"https://api.github.com/repos/adrien-gueret/ShyComics/assignees{/user}","branches_url":"https://api.github.com/repos/adrien-gueret/ShyComics/branches{/branch}","tags_url":"https://api.github.com/repos/adrien-gueret/ShyComics/tags","blobs_url":"https://api.github.com/repos/adrien-gueret/ShyComics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adrien-gueret/ShyComics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adrien-gueret/ShyComics/git/refs{/sha}","trees_url":"https://api.github.com/repos/adrien-gueret/ShyComics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adrien-gueret/ShyComics/statuses/{sha}","languages_url":"https://api.github.com/repos/adrien-gueret/ShyComics/languages","stargazers_url":"https://api.github.com/repos/adrien-gueret/ShyComics/stargazers","contributors_url":"https://api.github.com/repos/adrien-gueret/ShyComics/contributors","subscribers_url":"https://api.github.com/repos/adrien-gueret/ShyComics/subscribers","subscription_url":"https://api.github.com/repos/adrien-gueret/ShyComics/subscription","commits_url":"https://api.github.com/repos/adrien-gueret/ShyComics/commits{/sha}","git_commits_url":"https://api.github.com/repos/adrien-gueret/ShyComics/git/commits{/sha}","comments_url":"https://api.github.com/repos/adrien-gueret/ShyComics/comments{/number}","issue_comment_url":"https://api.github.com/repos/adrien-gueret/ShyComics/issues/comments{/number}","contents_url":"https://api.github.com/repos/adrien-gueret/ShyComics/contents/{+path}","compare_url":"https://api.github.com/repos/adrien-gueret/ShyComics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adrien-gueret/ShyComics/merges","archive_url":"https://api.github.com/repos/adrien-gueret/ShyComics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adrien-gueret/ShyComics/downloads","issues_url":"https://api.github.com/repos/adrien-gueret/ShyComics/issues{/number}","pulls_url":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls{/number}","milestones_url":"https://api.github.com/repos/adrien-gueret/ShyComics/milestones{/number}","notifications_url":"https://api.github.com/repos/adrien-gueret/ShyComics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adrien-gueret/ShyComics/labels{/name}","releases_url":"https://api.github.com/repos/adrien-gueret/ShyComics/releases{/id}","deployments_url":"https://api.github.com/repos/adrien-gueret/ShyComics/deployments","created_at":"2014-08-09T12:10:51Z","updated_at":"2016-07-18T12:29:43Z","pushed_at":"2016-08-30T11:12:35Z","git_url":"git://github.com/adrien-gueret/ShyComics.git","ssh_url":"git@github.com:adrien-gueret/ShyComics.git","clone_url":"https://github.com/adrien-gueret/ShyComics.git","svn_url":"https://github.com/adrien-gueret/ShyComics","homepage":null,"size":1103,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55"},"html":{"href":"https://github.com/adrien-gueret/ShyComics/pull/55"},"issue":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/issues/55"},"comments":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/adrien-gueret/ShyComics/statuses/5f7068fe047bce9f8e458368e9ede1f9536d79dc"}}}}
{"actor":{"display_login":"adrien-gueret"}}