{"action":"created","comment":{"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments/48091251","id":48091251,"diff_hunk":"@@ -61,9 +61,6 @@ def destroy\n       @topic.destroy\n       flash[:success] = 'Topic deleted'\n       redirect_to admin_topics_path\n-    else \n-      flash[:danger] = 'You can not delete topic with questions!'\n-      redirect_to admin_topics_path  \n     end","path":"app/controllers/admin/topics_controller.rb","position":7,"original_position":7,"commit_id":"38792ffd1028e7e853c05cd7c15c133c0edde274","original_commit_id":"cbe613c1b98277c1b4d16b1e6e65b4526733f1cc","user":{"login":"DimaSmagulov","id":15626073,"avatar_url":"https://avatars.githubusercontent.com/u/15626073?v=3","gravatar_id":"","url":"https://api.github.com/users/DimaSmagulov","html_url":"https://github.com/DimaSmagulov","followers_url":"https://api.github.com/users/DimaSmagulov/followers","following_url":"https://api.github.com/users/DimaSmagulov/following{/other_user}","gists_url":"https://api.github.com/users/DimaSmagulov/gists{/gist_id}","starred_url":"https://api.github.com/users/DimaSmagulov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DimaSmagulov/subscriptions","organizations_url":"https://api.github.com/users/DimaSmagulov/orgs","repos_url":"https://api.github.com/users/DimaSmagulov/repos","events_url":"https://api.github.com/users/DimaSmagulov/events{/privacy}","received_events_url":"https://api.github.com/users/DimaSmagulov/received_events","type":"User","site_admin":false},"body":"Need to read about it.","created_at":"2015-12-19T10:38:08Z","updated_at":"2015-12-19T10:38:08Z","html_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/62#discussion_r48091251","pull_request_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments/48091251"},"html":{"href":"https://github.com/if060-webui-RoR/Aid-Interview/pull/62#discussion_r48091251"},"pull_request":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62","id":54158832,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/62","diff_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/62.diff","patch_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/62.patch","issue_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/62","number":62,"state":"open","locked":false,"title":"Admin have no access to templates","user":{"login":"DimaSmagulov","id":15626073,"avatar_url":"https://avatars.githubusercontent.com/u/15626073?v=3","gravatar_id":"","url":"https://api.github.com/users/DimaSmagulov","html_url":"https://github.com/DimaSmagulov","followers_url":"https://api.github.com/users/DimaSmagulov/followers","following_url":"https://api.github.com/users/DimaSmagulov/following{/other_user}","gists_url":"https://api.github.com/users/DimaSmagulov/gists{/gist_id}","starred_url":"https://api.github.com/users/DimaSmagulov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DimaSmagulov/subscriptions","organizations_url":"https://api.github.com/users/DimaSmagulov/orgs","repos_url":"https://api.github.com/users/DimaSmagulov/repos","events_url":"https://api.github.com/users/DimaSmagulov/events{/privacy}","received_events_url":"https://api.github.com/users/DimaSmagulov/received_events","type":"User","site_admin":false},"body":"code review:\r\n- [ ] @CHILL99 \r\n- [ ] @krisberry \r\n- [x] @natalya5 \r\n- [x] @oleg08 \r\n- [x] @OrestF \r\n- [ ] @rtershak \r\n- [x] @vvs79 \r\n\r\n2nd lvl review:\r\n\r\n- [ ] @Kmalynss\r\n- [ ] @serhiym \r\n- [ ] @ruba-ruba\r\n\r\nhttps://trello.com/c/OpfZOsP1/27-ensure-that-guest-user-not-logged-in-has-no-access-to-templates-functionality This task have been comleted earlie, so i just rewoked it to enshure that admin has no access to templates.\r\n\r\n1. Admin has no access to templates\r\n2. Styled templates pages\r\n3. Some fixes","created_at":"2015-12-18T22:48:44Z","updated_at":"2015-12-19T10:38:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9145236ab01e45220dca9309baed15ef883cda40","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62/commits","review_comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62/comments","review_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/62/comments","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/38792ffd1028e7e853c05cd7c15c133c0edde274","head":{"label":"if060-webui-RoR:admin_no_access_to_templates","ref":"admin_no_access_to_templates","sha":"38792ffd1028e7e853c05cd7c15c133c0edde274","user":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"repo":{"id":46790920,"name":"Aid-Interview","full_name":"if060-webui-RoR/Aid-Interview","owner":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview","description":"Aid-Interview","fork":false,"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview","forks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/forks","keys_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/teams","hooks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/hooks","issue_events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/events{/number}","events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/events","assignees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/assignees{/user}","branches_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/branches{/branch}","tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/tags","blobs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/{sha}","languages_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/languages","stargazers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/stargazers","contributors_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contributors","subscribers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscribers","subscription_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscription","commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contents/{+path}","compare_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/merges","archive_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/downloads","issues_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues{/number}","pulls_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls{/number}","milestones_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/milestones{/number}","notifications_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/labels{/name}","releases_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/releases{/id}","created_at":"2015-11-24T12:42:01Z","updated_at":"2015-12-04T21:53:36Z","pushed_at":"2015-12-19T10:13:57Z","git_url":"git://github.com/if060-webui-RoR/Aid-Interview.git","ssh_url":"git@github.com:if060-webui-RoR/Aid-Interview.git","clone_url":"https://github.com/if060-webui-RoR/Aid-Interview.git","svn_url":"https://github.com/if060-webui-RoR/Aid-Interview","homepage":"https://aidinterview.herokuapp.com/","size":1576,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"if060-webui-RoR:master","ref":"master","sha":"1fd646164796d7c09194024794404841eb5c03a9","user":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"repo":{"id":46790920,"name":"Aid-Interview","full_name":"if060-webui-RoR/Aid-Interview","owner":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview","description":"Aid-Interview","fork":false,"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview","forks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/forks","keys_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/teams","hooks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/hooks","issue_events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/events{/number}","events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/events","assignees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/assignees{/user}","branches_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/branches{/branch}","tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/tags","blobs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/{sha}","languages_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/languages","stargazers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/stargazers","contributors_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contributors","subscribers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscribers","subscription_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscription","commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contents/{+path}","compare_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/merges","archive_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/downloads","issues_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues{/number}","pulls_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls{/number}","milestones_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/milestones{/number}","notifications_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/labels{/name}","releases_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/releases{/id}","created_at":"2015-11-24T12:42:01Z","updated_at":"2015-12-04T21:53:36Z","pushed_at":"2015-12-19T10:13:57Z","git_url":"git://github.com/if060-webui-RoR/Aid-Interview.git","ssh_url":"git@github.com:if060-webui-RoR/Aid-Interview.git","clone_url":"https://github.com/if060-webui-RoR/Aid-Interview.git","svn_url":"https://github.com/if060-webui-RoR/Aid-Interview","homepage":"https://aidinterview.herokuapp.com/","size":1576,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62"},"html":{"href":"https://github.com/if060-webui-RoR/Aid-Interview/pull/62"},"issue":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/62"},"comments":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/38792ffd1028e7e853c05cd7c15c133c0edde274"}}}}