{"action":"created","comment":{"url":"https://api.github.com/repos/openSUSE/osem/pulls/comments/71838122","id":71838122,"diff_hunk":"@@ -23,10 +23,11 @@\n             %td\n               = user.id\n             %td\n-              - if user.confirmed?\n-                confirmed\n-              - else\n-                unconfirmed\n+              - if can? :update, user","path":"app/views/admin/users/index.html.haml","position":17,"original_position":17,"commit_id":"929340bec74a98ce8f4573d629e851f1ec94375c","original_commit_id":"929340bec74a98ce8f4573d629e851f1ec94375c","user":{"login":"differentreality","id":4322737,"avatar_url":"https://avatars.githubusercontent.com/u/4322737?v=3","gravatar_id":"","url":"https://api.github.com/users/differentreality","html_url":"https://github.com/differentreality","followers_url":"https://api.github.com/users/differentreality/followers","following_url":"https://api.github.com/users/differentreality/following{/other_user}","gists_url":"https://api.github.com/users/differentreality/gists{/gist_id}","starred_url":"https://api.github.com/users/differentreality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/differentreality/subscriptions","organizations_url":"https://api.github.com/users/differentreality/orgs","repos_url":"https://api.github.com/users/differentreality/repos","events_url":"https://api.github.com/users/differentreality/events{/privacy}","received_events_url":"https://api.github.com/users/differentreality/received_events","type":"User","site_admin":false},"body":"When that is false, you are not showing anything, and it is impossible to know if the user is confirmed or not!\r\nYou can show the switch checkbox disabled. \r\nAlso the action here is not update but `toggle_confirmation`, you should properly authorize. If you are not clear on how to do the authorization, find me on IRC to discuss this more.","created_at":"2016-07-22T07:38:00Z","updated_at":"2016-07-22T07:38:00Z","html_url":"https://github.com/openSUSE/osem/pull/1097#discussion_r71838122","pull_request_url":"https://api.github.com/repos/openSUSE/osem/pulls/1097","_links":{"self":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/comments/71838122"},"html":{"href":"https://github.com/openSUSE/osem/pull/1097#discussion_r71838122"},"pull_request":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1097"}}},"pull_request":{"url":"https://api.github.com/repos/openSUSE/osem/pulls/1097","id":76886850,"html_url":"https://github.com/openSUSE/osem/pull/1097","diff_url":"https://github.com/openSUSE/osem/pull/1097.diff","patch_url":"https://github.com/openSUSE/osem/pull/1097.patch","issue_url":"https://api.github.com/repos/openSUSE/osem/issues/1097","number":1097,"state":"open","locked":false,"title":"Ability to confirm users by admin","user":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"body":"![users](https://cloud.githubusercontent.com/assets/14155445/16716734/33b1406a-46d3-11e6-99d0-5d66db65a1b3.png)\r\n\r\nThis is how the changes would reflect like.\r\n\r\nAs this is would be my first contribution to OSEM, It would be great if someone could guide me through this PR about the convections followed and whether the approach taken is correct or not. I'll proceed with the audit trail as specified in #1061 and writing test thereafter :).","created_at":"2016-07-10T23:33:19Z","updated_at":"2016-07-22T07:38:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"334bf3fbd69678fa674169b776c0e633e0b9313d","assignee":{"login":"differentreality","id":4322737,"avatar_url":"https://avatars.githubusercontent.com/u/4322737?v=3","gravatar_id":"","url":"https://api.github.com/users/differentreality","html_url":"https://github.com/differentreality","followers_url":"https://api.github.com/users/differentreality/followers","following_url":"https://api.github.com/users/differentreality/following{/other_user}","gists_url":"https://api.github.com/users/differentreality/gists{/gist_id}","starred_url":"https://api.github.com/users/differentreality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/differentreality/subscriptions","organizations_url":"https://api.github.com/users/differentreality/orgs","repos_url":"https://api.github.com/users/differentreality/repos","events_url":"https://api.github.com/users/differentreality/events{/privacy}","received_events_url":"https://api.github.com/users/differentreality/received_events","type":"User","site_admin":false},"assignees":[{"login":"differentreality","id":4322737,"avatar_url":"https://avatars.githubusercontent.com/u/4322737?v=3","gravatar_id":"","url":"https://api.github.com/users/differentreality","html_url":"https://github.com/differentreality","followers_url":"https://api.github.com/users/differentreality/followers","following_url":"https://api.github.com/users/differentreality/following{/other_user}","gists_url":"https://api.github.com/users/differentreality/gists{/gist_id}","starred_url":"https://api.github.com/users/differentreality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/differentreality/subscriptions","organizations_url":"https://api.github.com/users/differentreality/orgs","repos_url":"https://api.github.com/users/differentreality/repos","events_url":"https://api.github.com/users/differentreality/events{/privacy}","received_events_url":"https://api.github.com/users/differentreality/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/osem/pulls/1097/commits","review_comments_url":"https://api.github.com/repos/openSUSE/osem/pulls/1097/comments","review_comment_url":"https://api.github.com/repos/openSUSE/osem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/osem/issues/1097/comments","statuses_url":"https://api.github.com/repos/openSUSE/osem/statuses/929340bec74a98ce8f4573d629e851f1ec94375c","head":{"label":"shlok007:manual_confirmation","ref":"manual_confirmation","sha":"929340bec74a98ce8f4573d629e851f1ec94375c","user":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"repo":{"id":58906432,"name":"osem","full_name":"shlok007/osem","owner":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shlok007/osem","description":"Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.","fork":true,"url":"https://api.github.com/repos/shlok007/osem","forks_url":"https://api.github.com/repos/shlok007/osem/forks","keys_url":"https://api.github.com/repos/shlok007/osem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shlok007/osem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shlok007/osem/teams","hooks_url":"https://api.github.com/repos/shlok007/osem/hooks","issue_events_url":"https://api.github.com/repos/shlok007/osem/issues/events{/number}","events_url":"https://api.github.com/repos/shlok007/osem/events","assignees_url":"https://api.github.com/repos/shlok007/osem/assignees{/user}","branches_url":"https://api.github.com/repos/shlok007/osem/branches{/branch}","tags_url":"https://api.github.com/repos/shlok007/osem/tags","blobs_url":"https://api.github.com/repos/shlok007/osem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shlok007/osem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shlok007/osem/git/refs{/sha}","trees_url":"https://api.github.com/repos/shlok007/osem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shlok007/osem/statuses/{sha}","languages_url":"https://api.github.com/repos/shlok007/osem/languages","stargazers_url":"https://api.github.com/repos/shlok007/osem/stargazers","contributors_url":"https://api.github.com/repos/shlok007/osem/contributors","subscribers_url":"https://api.github.com/repos/shlok007/osem/subscribers","subscription_url":"https://api.github.com/repos/shlok007/osem/subscription","commits_url":"https://api.github.com/repos/shlok007/osem/commits{/sha}","git_commits_url":"https://api.github.com/repos/shlok007/osem/git/commits{/sha}","comments_url":"https://api.github.com/repos/shlok007/osem/comments{/number}","issue_comment_url":"https://api.github.com/repos/shlok007/osem/issues/comments{/number}","contents_url":"https://api.github.com/repos/shlok007/osem/contents/{+path}","compare_url":"https://api.github.com/repos/shlok007/osem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shlok007/osem/merges","archive_url":"https://api.github.com/repos/shlok007/osem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shlok007/osem/downloads","issues_url":"https://api.github.com/repos/shlok007/osem/issues{/number}","pulls_url":"https://api.github.com/repos/shlok007/osem/pulls{/number}","milestones_url":"https://api.github.com/repos/shlok007/osem/milestones{/number}","notifications_url":"https://api.github.com/repos/shlok007/osem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shlok007/osem/labels{/name}","releases_url":"https://api.github.com/repos/shlok007/osem/releases{/id}","deployments_url":"https://api.github.com/repos/shlok007/osem/deployments","created_at":"2016-05-16T05:37:12Z","updated_at":"2016-05-16T05:37:14Z","pushed_at":"2016-07-21T07:06:17Z","git_url":"git://github.com/shlok007/osem.git","ssh_url":"git@github.com:shlok007/osem.git","clone_url":"https://github.com/shlok007/osem.git","svn_url":"https://github.com/shlok007/osem","homepage":"http://osem.io","size":21988,"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":"openSUSE:master","ref":"master","sha":"7a95c43a57fa8f53d412ed38b398d3882fdb225a","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":5911225,"name":"osem","full_name":"openSUSE/osem","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/osem","description":"Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.","fork":false,"url":"https://api.github.com/repos/openSUSE/osem","forks_url":"https://api.github.com/repos/openSUSE/osem/forks","keys_url":"https://api.github.com/repos/openSUSE/osem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/osem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/osem/teams","hooks_url":"https://api.github.com/repos/openSUSE/osem/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/osem/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/osem/events","assignees_url":"https://api.github.com/repos/openSUSE/osem/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/osem/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/osem/tags","blobs_url":"https://api.github.com/repos/openSUSE/osem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/osem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/osem/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/osem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/osem/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/osem/languages","stargazers_url":"https://api.github.com/repos/openSUSE/osem/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/osem/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/osem/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/osem/subscription","commits_url":"https://api.github.com/repos/openSUSE/osem/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/osem/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/osem/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/osem/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/osem/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/osem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/osem/merges","archive_url":"https://api.github.com/repos/openSUSE/osem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/osem/downloads","issues_url":"https://api.github.com/repos/openSUSE/osem/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/osem/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/osem/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/osem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/osem/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/osem/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/osem/deployments","created_at":"2012-09-22T07:40:18Z","updated_at":"2016-07-15T11:44:40Z","pushed_at":"2016-07-21T19:45:38Z","git_url":"git://github.com/openSUSE/osem.git","ssh_url":"git@github.com:openSUSE/osem.git","clone_url":"https://github.com/openSUSE/osem.git","svn_url":"https://github.com/openSUSE/osem","homepage":"http://osem.io","size":39716,"stargazers_count":157,"watchers_count":157,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":113,"mirror_url":null,"open_issues_count":111,"forks":113,"open_issues":111,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1097"},"html":{"href":"https://github.com/openSUSE/osem/pull/1097"},"issue":{"href":"https://api.github.com/repos/openSUSE/osem/issues/1097"},"comments":{"href":"https://api.github.com/repos/openSUSE/osem/issues/1097/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1097/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1097/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/osem/statuses/929340bec74a98ce8f4573d629e851f1ec94375c"}}}}
{"actor":{"display_login":"differentreality"}}