{"action":"created","comment":{"url":"https://api.github.com/repos/apohllo/rocznik/pulls/comments/54798180","id":54798180,"diff_hunk":"@@ -36,11 +44,18 @@ def update\n   end\n \n   def edit\n-    @article_revision = ArticleRevision.find(params[:id])\n+    submission = Submission.find(params[:submission_id])\n+      if submission.status == 'nadesłany'\n+        @article_revision = ArticleRevision.find(params[:id])\n+      else\n+        redirect_to submission\n+      end","path":"app/controllers/article_revisions_controller.rb","position":27,"original_position":27,"commit_id":"d0a1fd4dc000137bd7b72d71e180bebb09e7ca14","original_commit_id":"d0a1fd4dc000137bd7b72d71e180bebb09e7ca14","user":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"body":"jw.","created_at":"2016-03-02T21:52:55Z","updated_at":"2016-03-02T21:52:55Z","html_url":"https://github.com/apohllo/rocznik/pull/405#discussion_r54798180","pull_request_url":"https://api.github.com/repos/apohllo/rocznik/pulls/405","_links":{"self":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/comments/54798180"},"html":{"href":"https://github.com/apohllo/rocznik/pull/405#discussion_r54798180"},"pull_request":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/405"}}},"pull_request":{"url":"https://api.github.com/repos/apohllo/rocznik/pulls/405","id":61001654,"html_url":"https://github.com/apohllo/rocznik/pull/405","diff_url":"https://github.com/apohllo/rocznik/pull/405.diff","patch_url":"https://github.com/apohllo/rocznik/pull/405.patch","issue_url":"https://api.github.com/repos/apohllo/rocznik/issues/405","number":405,"state":"open","locked":false,"title":"65 generowanie listy komentarzy","user":{"login":"sylviacapella","id":11947946,"avatar_url":"https://avatars.githubusercontent.com/u/11947946?v=3","gravatar_id":"","url":"https://api.github.com/users/sylviacapella","html_url":"https://github.com/sylviacapella","followers_url":"https://api.github.com/users/sylviacapella/followers","following_url":"https://api.github.com/users/sylviacapella/following{/other_user}","gists_url":"https://api.github.com/users/sylviacapella/gists{/gist_id}","starred_url":"https://api.github.com/users/sylviacapella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylviacapella/subscriptions","organizations_url":"https://api.github.com/users/sylviacapella/orgs","repos_url":"https://api.github.com/users/sylviacapella/repos","events_url":"https://api.github.com/users/sylviacapella/events{/privacy}","received_events_url":"https://api.github.com/users/sylviacapella/received_events","type":"User","site_admin":false},"body":"#65 \r\n","created_at":"2016-02-28T18:46:47Z","updated_at":"2016-03-02T21:52:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e67ffd3a6cb32479b22aa89ea9ccb0728ba70ede","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apohllo/rocznik/pulls/405/commits","review_comments_url":"https://api.github.com/repos/apohllo/rocznik/pulls/405/comments","review_comment_url":"https://api.github.com/repos/apohllo/rocznik/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apohllo/rocznik/issues/405/comments","statuses_url":"https://api.github.com/repos/apohllo/rocznik/statuses/d0a1fd4dc000137bd7b72d71e180bebb09e7ca14","head":{"label":"sylviacapella:65-generowanie-listy-komentarzy","ref":"65-generowanie-listy-komentarzy","sha":"d0a1fd4dc000137bd7b72d71e180bebb09e7ca14","user":{"login":"sylviacapella","id":11947946,"avatar_url":"https://avatars.githubusercontent.com/u/11947946?v=3","gravatar_id":"","url":"https://api.github.com/users/sylviacapella","html_url":"https://github.com/sylviacapella","followers_url":"https://api.github.com/users/sylviacapella/followers","following_url":"https://api.github.com/users/sylviacapella/following{/other_user}","gists_url":"https://api.github.com/users/sylviacapella/gists{/gist_id}","starred_url":"https://api.github.com/users/sylviacapella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylviacapella/subscriptions","organizations_url":"https://api.github.com/users/sylviacapella/orgs","repos_url":"https://api.github.com/users/sylviacapella/repos","events_url":"https://api.github.com/users/sylviacapella/events{/privacy}","received_events_url":"https://api.github.com/users/sylviacapella/received_events","type":"User","site_admin":false},"repo":{"id":47615563,"name":"rocznik","full_name":"sylviacapella/rocznik","owner":{"login":"sylviacapella","id":11947946,"avatar_url":"https://avatars.githubusercontent.com/u/11947946?v=3","gravatar_id":"","url":"https://api.github.com/users/sylviacapella","html_url":"https://github.com/sylviacapella","followers_url":"https://api.github.com/users/sylviacapella/followers","following_url":"https://api.github.com/users/sylviacapella/following{/other_user}","gists_url":"https://api.github.com/users/sylviacapella/gists{/gist_id}","starred_url":"https://api.github.com/users/sylviacapella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylviacapella/subscriptions","organizations_url":"https://api.github.com/users/sylviacapella/orgs","repos_url":"https://api.github.com/users/sylviacapella/repos","events_url":"https://api.github.com/users/sylviacapella/events{/privacy}","received_events_url":"https://api.github.com/users/sylviacapella/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sylviacapella/rocznik","description":"Scientific article submition system","fork":true,"url":"https://api.github.com/repos/sylviacapella/rocznik","forks_url":"https://api.github.com/repos/sylviacapella/rocznik/forks","keys_url":"https://api.github.com/repos/sylviacapella/rocznik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sylviacapella/rocznik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sylviacapella/rocznik/teams","hooks_url":"https://api.github.com/repos/sylviacapella/rocznik/hooks","issue_events_url":"https://api.github.com/repos/sylviacapella/rocznik/issues/events{/number}","events_url":"https://api.github.com/repos/sylviacapella/rocznik/events","assignees_url":"https://api.github.com/repos/sylviacapella/rocznik/assignees{/user}","branches_url":"https://api.github.com/repos/sylviacapella/rocznik/branches{/branch}","tags_url":"https://api.github.com/repos/sylviacapella/rocznik/tags","blobs_url":"https://api.github.com/repos/sylviacapella/rocznik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sylviacapella/rocznik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sylviacapella/rocznik/git/refs{/sha}","trees_url":"https://api.github.com/repos/sylviacapella/rocznik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sylviacapella/rocznik/statuses/{sha}","languages_url":"https://api.github.com/repos/sylviacapella/rocznik/languages","stargazers_url":"https://api.github.com/repos/sylviacapella/rocznik/stargazers","contributors_url":"https://api.github.com/repos/sylviacapella/rocznik/contributors","subscribers_url":"https://api.github.com/repos/sylviacapella/rocznik/subscribers","subscription_url":"https://api.github.com/repos/sylviacapella/rocznik/subscription","commits_url":"https://api.github.com/repos/sylviacapella/rocznik/commits{/sha}","git_commits_url":"https://api.github.com/repos/sylviacapella/rocznik/git/commits{/sha}","comments_url":"https://api.github.com/repos/sylviacapella/rocznik/comments{/number}","issue_comment_url":"https://api.github.com/repos/sylviacapella/rocznik/issues/comments{/number}","contents_url":"https://api.github.com/repos/sylviacapella/rocznik/contents/{+path}","compare_url":"https://api.github.com/repos/sylviacapella/rocznik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sylviacapella/rocznik/merges","archive_url":"https://api.github.com/repos/sylviacapella/rocznik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sylviacapella/rocznik/downloads","issues_url":"https://api.github.com/repos/sylviacapella/rocznik/issues{/number}","pulls_url":"https://api.github.com/repos/sylviacapella/rocznik/pulls{/number}","milestones_url":"https://api.github.com/repos/sylviacapella/rocznik/milestones{/number}","notifications_url":"https://api.github.com/repos/sylviacapella/rocznik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sylviacapella/rocznik/labels{/name}","releases_url":"https://api.github.com/repos/sylviacapella/rocznik/releases{/id}","deployments_url":"https://api.github.com/repos/sylviacapella/rocznik/deployments","created_at":"2015-12-08T10:35:44Z","updated_at":"2015-12-08T10:35:45Z","pushed_at":"2016-03-01T21:23:58Z","git_url":"git://github.com/sylviacapella/rocznik.git","ssh_url":"git@github.com:sylviacapella/rocznik.git","clone_url":"https://github.com/sylviacapella/rocznik.git","svn_url":"https://github.com/sylviacapella/rocznik","homepage":null,"size":4437,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"apohllo:master","ref":"master","sha":"aa2ec8207599e29d586040a0b17baa8326d2a3f3","user":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"repo":{"id":41358645,"name":"rocznik","full_name":"apohllo/rocznik","owner":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apohllo/rocznik","description":"Scientific article submission system","fork":false,"url":"https://api.github.com/repos/apohllo/rocznik","forks_url":"https://api.github.com/repos/apohllo/rocznik/forks","keys_url":"https://api.github.com/repos/apohllo/rocznik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apohllo/rocznik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apohllo/rocznik/teams","hooks_url":"https://api.github.com/repos/apohllo/rocznik/hooks","issue_events_url":"https://api.github.com/repos/apohllo/rocznik/issues/events{/number}","events_url":"https://api.github.com/repos/apohllo/rocznik/events","assignees_url":"https://api.github.com/repos/apohllo/rocznik/assignees{/user}","branches_url":"https://api.github.com/repos/apohllo/rocznik/branches{/branch}","tags_url":"https://api.github.com/repos/apohllo/rocznik/tags","blobs_url":"https://api.github.com/repos/apohllo/rocznik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apohllo/rocznik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apohllo/rocznik/git/refs{/sha}","trees_url":"https://api.github.com/repos/apohllo/rocznik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apohllo/rocznik/statuses/{sha}","languages_url":"https://api.github.com/repos/apohllo/rocznik/languages","stargazers_url":"https://api.github.com/repos/apohllo/rocznik/stargazers","contributors_url":"https://api.github.com/repos/apohllo/rocznik/contributors","subscribers_url":"https://api.github.com/repos/apohllo/rocznik/subscribers","subscription_url":"https://api.github.com/repos/apohllo/rocznik/subscription","commits_url":"https://api.github.com/repos/apohllo/rocznik/commits{/sha}","git_commits_url":"https://api.github.com/repos/apohllo/rocznik/git/commits{/sha}","comments_url":"https://api.github.com/repos/apohllo/rocznik/comments{/number}","issue_comment_url":"https://api.github.com/repos/apohllo/rocznik/issues/comments{/number}","contents_url":"https://api.github.com/repos/apohllo/rocznik/contents/{+path}","compare_url":"https://api.github.com/repos/apohllo/rocznik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apohllo/rocznik/merges","archive_url":"https://api.github.com/repos/apohllo/rocznik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apohllo/rocznik/downloads","issues_url":"https://api.github.com/repos/apohllo/rocznik/issues{/number}","pulls_url":"https://api.github.com/repos/apohllo/rocznik/pulls{/number}","milestones_url":"https://api.github.com/repos/apohllo/rocznik/milestones{/number}","notifications_url":"https://api.github.com/repos/apohllo/rocznik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apohllo/rocznik/labels{/name}","releases_url":"https://api.github.com/repos/apohllo/rocznik/releases{/id}","deployments_url":"https://api.github.com/repos/apohllo/rocznik/deployments","created_at":"2015-08-25T10:54:21Z","updated_at":"2016-01-11T23:12:33Z","pushed_at":"2016-03-02T21:50:11Z","git_url":"git://github.com/apohllo/rocznik.git","ssh_url":"git@github.com:apohllo/rocznik.git","clone_url":"https://github.com/apohllo/rocznik.git","svn_url":"https://github.com/apohllo/rocznik","homepage":"http://rocznik.kognitywistyka.eu","size":7702,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":89,"forks":49,"open_issues":89,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/405"},"html":{"href":"https://github.com/apohllo/rocznik/pull/405"},"issue":{"href":"https://api.github.com/repos/apohllo/rocznik/issues/405"},"comments":{"href":"https://api.github.com/repos/apohllo/rocznik/issues/405/comments"},"review_comments":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/405/comments"},"review_comment":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/405/commits"},"statuses":{"href":"https://api.github.com/repos/apohllo/rocznik/statuses/d0a1fd4dc000137bd7b72d71e180bebb09e7ca14"}}}}