{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments/78572764","id":78572764,"diff_hunk":"@@ -0,0 +1,18 @@\n+class PassthroughController < ApplicationController\n+  after_action :skip_authorization\n+\n+  def index\n+    current_organisation = document_models.find { |model| model.organisations.include? current_user.organisation_content_id }\n+\n+    if current_user.gds_editor?\n+      redirect_to \"/aaib-reports\"\n+    elsif current_organisation\n+      redirect_to(\"/\" + current_organisation.slug) && return\n+    else\n+      redirect_to error_path\n+    end\n+  end\n+\n+  def error","path":"app/controllers/passthrough_controller.rb","position":16,"original_position":16,"commit_id":"840a89ea238cd455882549d925221e03264d021b","original_commit_id":"840a89ea238cd455882549d925221e03264d021b","user":{"login":"Seraphiana","id":5594262,"avatar_url":"https://avatars.githubusercontent.com/u/5594262?v=3","gravatar_id":"","url":"https://api.github.com/users/Seraphiana","html_url":"https://github.com/Seraphiana","followers_url":"https://api.github.com/users/Seraphiana/followers","following_url":"https://api.github.com/users/Seraphiana/following{/other_user}","gists_url":"https://api.github.com/users/Seraphiana/gists{/gist_id}","starred_url":"https://api.github.com/users/Seraphiana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seraphiana/subscriptions","organizations_url":"https://api.github.com/users/Seraphiana/orgs","repos_url":"https://api.github.com/users/Seraphiana/repos","events_url":"https://api.github.com/users/Seraphiana/events{/privacy}","received_events_url":"https://api.github.com/users/Seraphiana/received_events","type":"User","site_admin":false},"body":"hmm. Maybe something a bit more specific. But if its rails magic then sticking with error might be best","created_at":"2016-09-13T14:38:48Z","updated_at":"2016-09-13T14:38:48Z","html_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/902#discussion_r78572764","pull_request_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902","_links":{"self":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments/78572764"},"html":{"href":"https://github.com/alphagov/specialist-publisher-rebuild/pull/902#discussion_r78572764"},"pull_request":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902","id":85037994,"html_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/902","diff_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/902.diff","patch_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/902.patch","issue_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/902","number":902,"state":"open","locked":false,"title":"[Do not merge] Separate finders into their own app","user":{"login":"Rosa-Fox","id":5963488,"avatar_url":"https://avatars.githubusercontent.com/u/5963488?v=3","gravatar_id":"","url":"https://api.github.com/users/Rosa-Fox","html_url":"https://github.com/Rosa-Fox","followers_url":"https://api.github.com/users/Rosa-Fox/followers","following_url":"https://api.github.com/users/Rosa-Fox/following{/other_user}","gists_url":"https://api.github.com/users/Rosa-Fox/gists{/gist_id}","starred_url":"https://api.github.com/users/Rosa-Fox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rosa-Fox/subscriptions","organizations_url":"https://api.github.com/users/Rosa-Fox/orgs","repos_url":"https://api.github.com/users/Rosa-Fox/repos","events_url":"https://api.github.com/users/Rosa-Fox/events{/privacy}","received_events_url":"https://api.github.com/users/Rosa-Fox/received_events","type":"User","site_admin":false},"body":"[Do not merge] because I am not 100% sure if we want to deploy this at the same time as we reconfigure Signon to allow users to log into Manuals and Finders separately?\r\n\r\n**Context**\r\n\r\nSpecialist Publisher will be split into two apps. 'Finders Publisher' and 'Manuals Publisher'.\r\n\r\nAt the time of this PR, the plan is to rename this application (Specialist Publisher Rebuild) to `Finders Publisher`. This will only serve the Finder functionality.\r\n\r\nV1 Specialist Publisher will serve the manuals functionality. V1 Specialist Publisher will be named 'Manuals Publisher'. In due course, Manuals Publisher will also be rebuilt.\r\n\r\n**This PR**\r\n- Removes manuals code \r\n- Redirects the `/` root url as it can no longer be `/manuals`\r\n\r\nScreen grabs of the mock ups of how this will appear to a user can be found [here](https://github.com/Rosa-Fox/mockups).\r\n\r\n[Trello: Create separate landing pages for manuals and finders](https://trello.com/c/Yj5tf91W/273-create-separate-landing-pages-for-manuals-and-finder-small)\r\n[Trello: Delete manuals code from the rebuild](https://trello.com/c/nnCA1kR0/242-delete-manuals-code-from-rebuild-small)","created_at":"2016-09-13T12:24:23Z","updated_at":"2016-09-13T14:38:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24c7685491af64a97c7c11dd7eb52afea304ff5c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902/commits","review_comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902/comments","review_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/902/comments","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/840a89ea238cd455882549d925221e03264d021b","head":{"label":"alphagov:separate-finders-into-their-own-app","ref":"separate-finders-into-their-own-app","sha":"840a89ea238cd455882549d925221e03264d021b","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":55792443,"name":"specialist-publisher-rebuild","full_name":"alphagov/specialist-publisher-rebuild","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/specialist-publisher-rebuild","description":"Publishing app for specialist documents on GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild","forks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/forks","keys_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/teams","hooks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/hooks","issue_events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/events","assignees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/tags","blobs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/languages","stargazers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/stargazers","contributors_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contributors","subscribers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscribers","subscription_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscription","commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/merges","archive_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/downloads","issues_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/deployments","created_at":"2016-04-08T16:10:36Z","updated_at":"2016-09-05T16:49:07Z","pushed_at":"2016-09-13T14:25:16Z","git_url":"git://github.com/alphagov/specialist-publisher-rebuild.git","ssh_url":"git@github.com:alphagov/specialist-publisher-rebuild.git","clone_url":"https://github.com/alphagov/specialist-publisher-rebuild.git","svn_url":"https://github.com/alphagov/specialist-publisher-rebuild","homepage":"","size":7219,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"34454db2fdef97838578a412fe51271b5e54b9fd","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":55792443,"name":"specialist-publisher-rebuild","full_name":"alphagov/specialist-publisher-rebuild","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/specialist-publisher-rebuild","description":"Publishing app for specialist documents on GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild","forks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/forks","keys_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/teams","hooks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/hooks","issue_events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/events","assignees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/tags","blobs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/languages","stargazers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/stargazers","contributors_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contributors","subscribers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscribers","subscription_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscription","commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/merges","archive_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/downloads","issues_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/deployments","created_at":"2016-04-08T16:10:36Z","updated_at":"2016-09-05T16:49:07Z","pushed_at":"2016-09-13T14:25:16Z","git_url":"git://github.com/alphagov/specialist-publisher-rebuild.git","ssh_url":"git@github.com:alphagov/specialist-publisher-rebuild.git","clone_url":"https://github.com/alphagov/specialist-publisher-rebuild.git","svn_url":"https://github.com/alphagov/specialist-publisher-rebuild","homepage":"","size":7219,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902"},"html":{"href":"https://github.com/alphagov/specialist-publisher-rebuild/pull/902"},"issue":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/902"},"comments":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/902/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/902/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/840a89ea238cd455882549d925221e03264d021b"}}}}
{"actor":{"display_login":"Seraphiana"}}