{"action":"created","comment":{"url":"https://api.github.com/repos/publiclab/plots2/pulls/comments/93248427","pull_request_review_id":13770899,"id":93248427,"diff_hunk":"@@ -132,11 +132,24 @@ def teardown\n     assert_equal flash[:notice], \"Edits saved.\"\n   end\n \n+  test \"basic user blocked from editing a locked wiki page\" do\n+    node(:organizers).add_tag('locked', rusers(:admin)) # lock the page with a tag\n+    # then try editing it\n+    assert_difference 'DrupalNodeRevision.count', 0 do\n+      post :edit,\n+          id: 'organizers'\n+    end\n+    assert_template \"wiki/edit\"\n+    assert_select \".alert\", \"flash.now[:warning] = 'This page is <a href='/wiki/power-tags#Locking'>locked</a>, and only <a href='/wiki/moderators'>moderators</a> can edit it.'\"","path":"test/functional/wiki_controller_test.rb","position":null,"original_position":79,"commit_id":"af7da24cc42d0b97d69863983fbcead95f790cda","original_commit_id":"59539cd00d0adcb302bf691a2c9544d6b4c070c4","user":{"login":"500swapnil","id":22377632,"avatar_url":"https://avatars.githubusercontent.com/u/22377632?v=3","gravatar_id":"","url":"https://api.github.com/users/500swapnil","html_url":"https://github.com/500swapnil","followers_url":"https://api.github.com/users/500swapnil/followers","following_url":"https://api.github.com/users/500swapnil/following{/other_user}","gists_url":"https://api.github.com/users/500swapnil/gists{/gist_id}","starred_url":"https://api.github.com/users/500swapnil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500swapnil/subscriptions","organizations_url":"https://api.github.com/users/500swapnil/orgs","repos_url":"https://api.github.com/users/500swapnil/repos","events_url":"https://api.github.com/users/500swapnil/events{/privacy}","received_events_url":"https://api.github.com/users/500swapnil/received_events","type":"User","site_admin":false},"body":"Done it!","created_at":"2016-12-20T14:34:45Z","updated_at":"2016-12-20T14:34:45Z","html_url":"https://github.com/publiclab/plots2/pull/1114#discussion_r93248427","pull_request_url":"https://api.github.com/repos/publiclab/plots2/pulls/1114","_links":{"self":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/comments/93248427"},"html":{"href":"https://github.com/publiclab/plots2/pull/1114#discussion_r93248427"},"pull_request":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/1114"}}},"pull_request":{"url":"https://api.github.com/repos/publiclab/plots2/pulls/1114","id":98383043,"html_url":"https://github.com/publiclab/plots2/pull/1114","diff_url":"https://github.com/publiclab/plots2/pull/1114.diff","patch_url":"https://github.com/publiclab/plots2/pull/1114.patch","issue_url":"https://api.github.com/repos/publiclab/plots2/issues/1114","number":1114,"state":"open","locked":false,"title":"Added test to block basic user edits, closes issue #397","user":{"login":"500swapnil","id":22377632,"avatar_url":"https://avatars.githubusercontent.com/u/22377632?v=3","gravatar_id":"","url":"https://api.github.com/users/500swapnil","html_url":"https://github.com/500swapnil","followers_url":"https://api.github.com/users/500swapnil/followers","following_url":"https://api.github.com/users/500swapnil/following{/other_user}","gists_url":"https://api.github.com/users/500swapnil/gists{/gist_id}","starred_url":"https://api.github.com/users/500swapnil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500swapnil/subscriptions","organizations_url":"https://api.github.com/users/500swapnil/orgs","repos_url":"https://api.github.com/users/500swapnil/repos","events_url":"https://api.github.com/users/500swapnil/events{/privacy}","received_events_url":"https://api.github.com/users/500swapnil/received_events","type":"User","site_admin":false},"body":"Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!\r\n\r\n* [ ] all tests pass -- `rake test:all`\r\n* [x] code is in uniquely-named feature branch, and has been rebased on top of latest master (especially if you've been asked to make additional changes)\r\n* [x] pull request is descriptively named with #number reference back to original issue\r\n* [x] if possible, multiple commits squashed if they're smaller changes\r\n* [ ] reviewed/confirmed/tested by another contributor or maintainer\r\n* [ ] `schema.rb.example` has been updated if any database migrations were added\r\n\r\nPlease be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software\r\n\r\nWe have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays. Please alert developers on plots-dev@googlegroups.com when your request is ready or if you need assistance.\r\n\r\nThanks!\r\n\r\n","created_at":"2016-12-16T18:41:40Z","updated_at":"2016-12-20T14:34:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"663a1e4d76b3b8009d3326902df816be7b8bd955","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/publiclab/plots2/pulls/1114/commits","review_comments_url":"https://api.github.com/repos/publiclab/plots2/pulls/1114/comments","review_comment_url":"https://api.github.com/repos/publiclab/plots2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/publiclab/plots2/issues/1114/comments","statuses_url":"https://api.github.com/repos/publiclab/plots2/statuses/af7da24cc42d0b97d69863983fbcead95f790cda","head":{"label":"500swapnil:master","ref":"master","sha":"af7da24cc42d0b97d69863983fbcead95f790cda","user":{"login":"500swapnil","id":22377632,"avatar_url":"https://avatars.githubusercontent.com/u/22377632?v=3","gravatar_id":"","url":"https://api.github.com/users/500swapnil","html_url":"https://github.com/500swapnil","followers_url":"https://api.github.com/users/500swapnil/followers","following_url":"https://api.github.com/users/500swapnil/following{/other_user}","gists_url":"https://api.github.com/users/500swapnil/gists{/gist_id}","starred_url":"https://api.github.com/users/500swapnil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500swapnil/subscriptions","organizations_url":"https://api.github.com/users/500swapnil/orgs","repos_url":"https://api.github.com/users/500swapnil/repos","events_url":"https://api.github.com/users/500swapnil/events{/privacy}","received_events_url":"https://api.github.com/users/500swapnil/received_events","type":"User","site_admin":false},"repo":{"id":76675292,"name":"plots2","full_name":"500swapnil/plots2","owner":{"login":"500swapnil","id":22377632,"avatar_url":"https://avatars.githubusercontent.com/u/22377632?v=3","gravatar_id":"","url":"https://api.github.com/users/500swapnil","html_url":"https://github.com/500swapnil","followers_url":"https://api.github.com/users/500swapnil/followers","following_url":"https://api.github.com/users/500swapnil/following{/other_user}","gists_url":"https://api.github.com/users/500swapnil/gists{/gist_id}","starred_url":"https://api.github.com/users/500swapnil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500swapnil/subscriptions","organizations_url":"https://api.github.com/users/500swapnil/orgs","repos_url":"https://api.github.com/users/500swapnil/repos","events_url":"https://api.github.com/users/500swapnil/events{/privacy}","received_events_url":"https://api.github.com/users/500swapnil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/500swapnil/plots2","description":"The PublicLab.org website - a collaborative research sharing platform and wiki.","fork":true,"url":"https://api.github.com/repos/500swapnil/plots2","forks_url":"https://api.github.com/repos/500swapnil/plots2/forks","keys_url":"https://api.github.com/repos/500swapnil/plots2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/500swapnil/plots2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/500swapnil/plots2/teams","hooks_url":"https://api.github.com/repos/500swapnil/plots2/hooks","issue_events_url":"https://api.github.com/repos/500swapnil/plots2/issues/events{/number}","events_url":"https://api.github.com/repos/500swapnil/plots2/events","assignees_url":"https://api.github.com/repos/500swapnil/plots2/assignees{/user}","branches_url":"https://api.github.com/repos/500swapnil/plots2/branches{/branch}","tags_url":"https://api.github.com/repos/500swapnil/plots2/tags","blobs_url":"https://api.github.com/repos/500swapnil/plots2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/500swapnil/plots2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/500swapnil/plots2/git/refs{/sha}","trees_url":"https://api.github.com/repos/500swapnil/plots2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/500swapnil/plots2/statuses/{sha}","languages_url":"https://api.github.com/repos/500swapnil/plots2/languages","stargazers_url":"https://api.github.com/repos/500swapnil/plots2/stargazers","contributors_url":"https://api.github.com/repos/500swapnil/plots2/contributors","subscribers_url":"https://api.github.com/repos/500swapnil/plots2/subscribers","subscription_url":"https://api.github.com/repos/500swapnil/plots2/subscription","commits_url":"https://api.github.com/repos/500swapnil/plots2/commits{/sha}","git_commits_url":"https://api.github.com/repos/500swapnil/plots2/git/commits{/sha}","comments_url":"https://api.github.com/repos/500swapnil/plots2/comments{/number}","issue_comment_url":"https://api.github.com/repos/500swapnil/plots2/issues/comments{/number}","contents_url":"https://api.github.com/repos/500swapnil/plots2/contents/{+path}","compare_url":"https://api.github.com/repos/500swapnil/plots2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/500swapnil/plots2/merges","archive_url":"https://api.github.com/repos/500swapnil/plots2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/500swapnil/plots2/downloads","issues_url":"https://api.github.com/repos/500swapnil/plots2/issues{/number}","pulls_url":"https://api.github.com/repos/500swapnil/plots2/pulls{/number}","milestones_url":"https://api.github.com/repos/500swapnil/plots2/milestones{/number}","notifications_url":"https://api.github.com/repos/500swapnil/plots2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/500swapnil/plots2/labels{/name}","releases_url":"https://api.github.com/repos/500swapnil/plots2/releases{/id}","deployments_url":"https://api.github.com/repos/500swapnil/plots2/deployments","created_at":"2016-12-16T18:13:51Z","updated_at":"2016-12-16T18:13:53Z","pushed_at":"2016-12-20T14:34:35Z","git_url":"git://github.com/500swapnil/plots2.git","ssh_url":"git@github.com:500swapnil/plots2.git","clone_url":"https://github.com/500swapnil/plots2.git","svn_url":"https://github.com/500swapnil/plots2","homepage":"https://publiclab.org","size":12095,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"publiclab:master","ref":"master","sha":"df5bb75d7dc61da2e9761c40c2c423573cf3fdb2","user":{"login":"publiclab","id":4621650,"avatar_url":"https://avatars.githubusercontent.com/u/4621650?v=3","gravatar_id":"","url":"https://api.github.com/users/publiclab","html_url":"https://github.com/publiclab","followers_url":"https://api.github.com/users/publiclab/followers","following_url":"https://api.github.com/users/publiclab/following{/other_user}","gists_url":"https://api.github.com/users/publiclab/gists{/gist_id}","starred_url":"https://api.github.com/users/publiclab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/publiclab/subscriptions","organizations_url":"https://api.github.com/users/publiclab/orgs","repos_url":"https://api.github.com/users/publiclab/repos","events_url":"https://api.github.com/users/publiclab/events{/privacy}","received_events_url":"https://api.github.com/users/publiclab/received_events","type":"Organization","site_admin":false},"repo":{"id":10504669,"name":"plots2","full_name":"publiclab/plots2","owner":{"login":"publiclab","id":4621650,"avatar_url":"https://avatars.githubusercontent.com/u/4621650?v=3","gravatar_id":"","url":"https://api.github.com/users/publiclab","html_url":"https://github.com/publiclab","followers_url":"https://api.github.com/users/publiclab/followers","following_url":"https://api.github.com/users/publiclab/following{/other_user}","gists_url":"https://api.github.com/users/publiclab/gists{/gist_id}","starred_url":"https://api.github.com/users/publiclab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/publiclab/subscriptions","organizations_url":"https://api.github.com/users/publiclab/orgs","repos_url":"https://api.github.com/users/publiclab/repos","events_url":"https://api.github.com/users/publiclab/events{/privacy}","received_events_url":"https://api.github.com/users/publiclab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/publiclab/plots2","description":"The PublicLab.org website - a collaborative research sharing platform and wiki.","fork":false,"url":"https://api.github.com/repos/publiclab/plots2","forks_url":"https://api.github.com/repos/publiclab/plots2/forks","keys_url":"https://api.github.com/repos/publiclab/plots2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/publiclab/plots2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/publiclab/plots2/teams","hooks_url":"https://api.github.com/repos/publiclab/plots2/hooks","issue_events_url":"https://api.github.com/repos/publiclab/plots2/issues/events{/number}","events_url":"https://api.github.com/repos/publiclab/plots2/events","assignees_url":"https://api.github.com/repos/publiclab/plots2/assignees{/user}","branches_url":"https://api.github.com/repos/publiclab/plots2/branches{/branch}","tags_url":"https://api.github.com/repos/publiclab/plots2/tags","blobs_url":"https://api.github.com/repos/publiclab/plots2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/publiclab/plots2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/publiclab/plots2/git/refs{/sha}","trees_url":"https://api.github.com/repos/publiclab/plots2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/publiclab/plots2/statuses/{sha}","languages_url":"https://api.github.com/repos/publiclab/plots2/languages","stargazers_url":"https://api.github.com/repos/publiclab/plots2/stargazers","contributors_url":"https://api.github.com/repos/publiclab/plots2/contributors","subscribers_url":"https://api.github.com/repos/publiclab/plots2/subscribers","subscription_url":"https://api.github.com/repos/publiclab/plots2/subscription","commits_url":"https://api.github.com/repos/publiclab/plots2/commits{/sha}","git_commits_url":"https://api.github.com/repos/publiclab/plots2/git/commits{/sha}","comments_url":"https://api.github.com/repos/publiclab/plots2/comments{/number}","issue_comment_url":"https://api.github.com/repos/publiclab/plots2/issues/comments{/number}","contents_url":"https://api.github.com/repos/publiclab/plots2/contents/{+path}","compare_url":"https://api.github.com/repos/publiclab/plots2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/publiclab/plots2/merges","archive_url":"https://api.github.com/repos/publiclab/plots2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/publiclab/plots2/downloads","issues_url":"https://api.github.com/repos/publiclab/plots2/issues{/number}","pulls_url":"https://api.github.com/repos/publiclab/plots2/pulls{/number}","milestones_url":"https://api.github.com/repos/publiclab/plots2/milestones{/number}","notifications_url":"https://api.github.com/repos/publiclab/plots2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/publiclab/plots2/labels{/name}","releases_url":"https://api.github.com/repos/publiclab/plots2/releases{/id}","deployments_url":"https://api.github.com/repos/publiclab/plots2/deployments","created_at":"2013-06-05T14:36:10Z","updated_at":"2016-12-20T00:26:26Z","pushed_at":"2016-12-20T14:34:35Z","git_url":"git://github.com/publiclab/plots2.git","ssh_url":"git@github.com:publiclab/plots2.git","clone_url":"https://github.com/publiclab/plots2.git","svn_url":"https://github.com/publiclab/plots2","homepage":"https://publiclab.org","size":12107,"stargazers_count":79,"watchers_count":79,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":191,"forks":115,"open_issues":191,"watchers":79,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/1114"},"html":{"href":"https://github.com/publiclab/plots2/pull/1114"},"issue":{"href":"https://api.github.com/repos/publiclab/plots2/issues/1114"},"comments":{"href":"https://api.github.com/repos/publiclab/plots2/issues/1114/comments"},"review_comments":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/1114/comments"},"review_comment":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/1114/commits"},"statuses":{"href":"https://api.github.com/repos/publiclab/plots2/statuses/af7da24cc42d0b97d69863983fbcead95f790cda"}}}}
{"actor":{"display_login":"500swapnil"}}