{"action":"created","comment":{"url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/comments/22756150","id":22756150,"diff_hunk":"@@ -0,0 +1,46 @@\n+class Admin::UsersController < ApplicationController\n+\n+  before_filter :authenticate_user!\n+  before_filter :admin_only, :except => :show\n+\n+  def index\n+    @users = User.all\n+  end\n+\n+  def show\n+    @user = User.find(params[:id])\n+    unless current_user.admin?\n+      unless @user == current_user","path":"app/controllers/admin/users_controller.rb","position":13,"original_position":13,"commit_id":"ad858c76c3891c22b90752ef4c745b9b357171fb","original_commit_id":"ad858c76c3891c22b90752ef4c745b9b357171fb","user":{"login":"orendon","id":1316543,"avatar_url":"https://avatars.githubusercontent.com/u/1316543?v=3","gravatar_id":"","url":"https://api.github.com/users/orendon","html_url":"https://github.com/orendon","followers_url":"https://api.github.com/users/orendon/followers","following_url":"https://api.github.com/users/orendon/following{/other_user}","gists_url":"https://api.github.com/users/orendon/gists{/gist_id}","starred_url":"https://api.github.com/users/orendon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orendon/subscriptions","organizations_url":"https://api.github.com/users/orendon/orgs","repos_url":"https://api.github.com/users/orendon/repos","events_url":"https://api.github.com/users/orendon/events{/privacy}","received_events_url":"https://api.github.com/users/orendon/received_events","type":"User","site_admin":false},"body":":eyes: ","created_at":"2015-01-10T04:03:30Z","updated_at":"2015-01-10T04:03:30Z","html_url":"https://github.com/ricardorojass/SCR-eCommerce/pull/5#discussion_r22756150","pull_request_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/comments/22756150"},"html":{"href":"https://github.com/ricardorojass/SCR-eCommerce/pull/5#discussion_r22756150"},"pull_request":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5","id":27122899,"html_url":"https://github.com/ricardorojass/SCR-eCommerce/pull/5","diff_url":"https://github.com/ricardorojass/SCR-eCommerce/pull/5.diff","patch_url":"https://github.com/ricardorojass/SCR-eCommerce/pull/5.patch","issue_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/5","number":5,"state":"closed","locked":false,"title":"Product creation","user":{"login":"ChrisEstanol","id":7317401,"avatar_url":"https://avatars.githubusercontent.com/u/7317401?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisEstanol","html_url":"https://github.com/ChrisEstanol","followers_url":"https://api.github.com/users/ChrisEstanol/followers","following_url":"https://api.github.com/users/ChrisEstanol/following{/other_user}","gists_url":"https://api.github.com/users/ChrisEstanol/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisEstanol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisEstanol/subscriptions","organizations_url":"https://api.github.com/users/ChrisEstanol/orgs","repos_url":"https://api.github.com/users/ChrisEstanol/repos","events_url":"https://api.github.com/users/ChrisEstanol/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisEstanol/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-09T19:28:54Z","updated_at":"2015-01-10T04:03:30Z","closed_at":"2015-01-09T21:10:08Z","merged_at":"2015-01-09T21:10:08Z","merge_commit_sha":"5de2bc92fbd5b4afec2653480ec383beddc9a217","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/5/comments","statuses_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/statuses/ad858c76c3891c22b90752ef4c745b9b357171fb","head":{"label":"ricardorojass:product","ref":"product","sha":"ad858c76c3891c22b90752ef4c745b9b357171fb","user":{"login":"ricardorojass","id":9722293,"avatar_url":"https://avatars.githubusercontent.com/u/9722293?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardorojass","html_url":"https://github.com/ricardorojass","followers_url":"https://api.github.com/users/ricardorojass/followers","following_url":"https://api.github.com/users/ricardorojass/following{/other_user}","gists_url":"https://api.github.com/users/ricardorojass/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardorojass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardorojass/subscriptions","organizations_url":"https://api.github.com/users/ricardorojass/orgs","repos_url":"https://api.github.com/users/ricardorojass/repos","events_url":"https://api.github.com/users/ricardorojass/events{/privacy}","received_events_url":"https://api.github.com/users/ricardorojass/received_events","type":"User","site_admin":false},"repo":{"id":28649861,"name":"SCR-eCommerce","full_name":"ricardorojass/SCR-eCommerce","owner":{"login":"ricardorojass","id":9722293,"avatar_url":"https://avatars.githubusercontent.com/u/9722293?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardorojass","html_url":"https://github.com/ricardorojass","followers_url":"https://api.github.com/users/ricardorojass/followers","following_url":"https://api.github.com/users/ricardorojass/following{/other_user}","gists_url":"https://api.github.com/users/ricardorojass/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardorojass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardorojass/subscriptions","organizations_url":"https://api.github.com/users/ricardorojass/orgs","repos_url":"https://api.github.com/users/ricardorojass/repos","events_url":"https://api.github.com/users/ricardorojass/events{/privacy}","received_events_url":"https://api.github.com/users/ricardorojass/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ricardorojass/SCR-eCommerce","description":"Group project Make It Real","fork":false,"url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce","forks_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/forks","keys_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/teams","hooks_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/hooks","issue_events_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/events{/number}","events_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/events","assignees_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/assignees{/user}","branches_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/branches{/branch}","tags_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/tags","blobs_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/languages","stargazers_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/stargazers","contributors_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/contributors","subscribers_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/subscribers","subscription_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/subscription","commits_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/comments/{number}","contents_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/contents/{+path}","compare_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/merges","archive_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/downloads","issues_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues{/number}","pulls_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/labels{/name}","releases_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/releases{/id}","created_at":"2014-12-31T00:06:09Z","updated_at":"2015-01-10T02:54:42Z","pushed_at":"2015-01-09T21:10:08Z","git_url":"git://github.com/ricardorojass/SCR-eCommerce.git","ssh_url":"git@github.com:ricardorojass/SCR-eCommerce.git","clone_url":"https://github.com/ricardorojass/SCR-eCommerce.git","svn_url":"https://github.com/ricardorojass/SCR-eCommerce","homepage":null,"size":268,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"ricardorojass:master","ref":"master","sha":"b996410d2c7cebd7c0ddb8f9ff25b37ae3b36952","user":{"login":"ricardorojass","id":9722293,"avatar_url":"https://avatars.githubusercontent.com/u/9722293?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardorojass","html_url":"https://github.com/ricardorojass","followers_url":"https://api.github.com/users/ricardorojass/followers","following_url":"https://api.github.com/users/ricardorojass/following{/other_user}","gists_url":"https://api.github.com/users/ricardorojass/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardorojass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardorojass/subscriptions","organizations_url":"https://api.github.com/users/ricardorojass/orgs","repos_url":"https://api.github.com/users/ricardorojass/repos","events_url":"https://api.github.com/users/ricardorojass/events{/privacy}","received_events_url":"https://api.github.com/users/ricardorojass/received_events","type":"User","site_admin":false},"repo":{"id":28649861,"name":"SCR-eCommerce","full_name":"ricardorojass/SCR-eCommerce","owner":{"login":"ricardorojass","id":9722293,"avatar_url":"https://avatars.githubusercontent.com/u/9722293?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardorojass","html_url":"https://github.com/ricardorojass","followers_url":"https://api.github.com/users/ricardorojass/followers","following_url":"https://api.github.com/users/ricardorojass/following{/other_user}","gists_url":"https://api.github.com/users/ricardorojass/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardorojass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardorojass/subscriptions","organizations_url":"https://api.github.com/users/ricardorojass/orgs","repos_url":"https://api.github.com/users/ricardorojass/repos","events_url":"https://api.github.com/users/ricardorojass/events{/privacy}","received_events_url":"https://api.github.com/users/ricardorojass/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ricardorojass/SCR-eCommerce","description":"Group project Make It Real","fork":false,"url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce","forks_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/forks","keys_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/teams","hooks_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/hooks","issue_events_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/events{/number}","events_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/events","assignees_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/assignees{/user}","branches_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/branches{/branch}","tags_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/tags","blobs_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/languages","stargazers_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/stargazers","contributors_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/contributors","subscribers_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/subscribers","subscription_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/subscription","commits_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/comments/{number}","contents_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/contents/{+path}","compare_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/merges","archive_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/downloads","issues_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues{/number}","pulls_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/labels{/name}","releases_url":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/releases{/id}","created_at":"2014-12-31T00:06:09Z","updated_at":"2015-01-10T02:54:42Z","pushed_at":"2015-01-09T21:10:08Z","git_url":"git://github.com/ricardorojass/SCR-eCommerce.git","ssh_url":"git@github.com:ricardorojass/SCR-eCommerce.git","clone_url":"https://github.com/ricardorojass/SCR-eCommerce.git","svn_url":"https://github.com/ricardorojass/SCR-eCommerce","homepage":null,"size":268,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5"},"html":{"href":"https://github.com/ricardorojass/SCR-eCommerce/pull/5"},"issue":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/5"},"comments":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ricardorojass/SCR-eCommerce/statuses/ad858c76c3891c22b90752ef4c745b9b357171fb"}}}}