{"action":"created","comment":{"url":"https://api.github.com/repos/CTPUG/wafer/pulls/comments/56226644","id":56226644,"diff_hunk":"@@ -38,6 +38,13 @@ class ProfileView(DetailView):\n     slug_field = 'username'\n     slug_url_kwarg = 'username'\n \n+    def get_object(self, *args, **kwargs):\n+        object_ = super(ProfileView, self).get_object(*args, **kwargs)\n+        if not settings.WAFER_PUBLIC_ATTENDEE_LIST:\n+            if not object_.userprofile.accepted_talks().exists():\n+                raise Http404()","path":"wafer/users/views.py","position":8,"original_position":8,"commit_id":"399e79e925b08cce2298ea504ff7e35252a3701e","original_commit_id":"399e79e925b08cce2298ea504ff7e35252a3701e","user":{"login":"drnlm","id":642056,"avatar_url":"https://avatars.githubusercontent.com/u/642056?v=3","gravatar_id":"","url":"https://api.github.com/users/drnlm","html_url":"https://github.com/drnlm","followers_url":"https://api.github.com/users/drnlm/followers","following_url":"https://api.github.com/users/drnlm/following{/other_user}","gists_url":"https://api.github.com/users/drnlm/gists{/gist_id}","starred_url":"https://api.github.com/users/drnlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drnlm/subscriptions","organizations_url":"https://api.github.com/users/drnlm/orgs","repos_url":"https://api.github.com/users/drnlm/repos","events_url":"https://api.github.com/users/drnlm/events{/privacy}","received_events_url":"https://api.github.com/users/drnlm/received_events","type":"User","site_admin":false},"body":"Surely this is too restrictive? Logged in users should be able to see their own profile, even if they don't have an accepted talk.","created_at":"2016-03-15T19:35:26Z","updated_at":"2016-03-15T19:35:26Z","html_url":"https://github.com/CTPUG/wafer/pull/209#discussion_r56226644","pull_request_url":"https://api.github.com/repos/CTPUG/wafer/pulls/209","_links":{"self":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/comments/56226644"},"html":{"href":"https://github.com/CTPUG/wafer/pull/209#discussion_r56226644"},"pull_request":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/CTPUG/wafer/pulls/209","id":62650447,"html_url":"https://github.com/CTPUG/wafer/pull/209","diff_url":"https://github.com/CTPUG/wafer/pull/209.diff","patch_url":"https://github.com/CTPUG/wafer/pull/209.patch","issue_url":"https://api.github.com/repos/CTPUG/wafer/issues/209","number":209,"state":"open","locked":false,"title":"Participant privacy","user":{"login":"stefanor","id":442117,"avatar_url":"https://avatars.githubusercontent.com/u/442117?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanor","html_url":"https://github.com/stefanor","followers_url":"https://api.github.com/users/stefanor/followers","following_url":"https://api.github.com/users/stefanor/following{/other_user}","gists_url":"https://api.github.com/users/stefanor/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanor/subscriptions","organizations_url":"https://api.github.com/users/stefanor/orgs","repos_url":"https://api.github.com/users/stefanor/repos","events_url":"https://api.github.com/users/stefanor/events{/privacy}","received_events_url":"https://api.github.com/users/stefanor/received_events","type":"User","site_admin":false},"body":"Fixes #169 \r\n\r\nDebConf would prefer to not make the list of registered users public. Talk admins can set alternate speakers, where necessary.","created_at":"2016-03-12T19:47:55Z","updated_at":"2016-03-15T19:35:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f1bf18d8b8261afb7429e4b8bf8eeb7ea4d2b32","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CTPUG/wafer/pulls/209/commits","review_comments_url":"https://api.github.com/repos/CTPUG/wafer/pulls/209/comments","review_comment_url":"https://api.github.com/repos/CTPUG/wafer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CTPUG/wafer/issues/209/comments","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/399e79e925b08cce2298ea504ff7e35252a3701e","head":{"label":"CTPUG:participant-privacy","ref":"participant-privacy","sha":"399e79e925b08cce2298ea504ff7e35252a3701e","user":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"repo":{"id":8658619,"name":"wafer","full_name":"CTPUG/wafer","owner":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CTPUG/wafer","description":"A wafer-thin web application for running small conferences. Built using Django.","fork":false,"url":"https://api.github.com/repos/CTPUG/wafer","forks_url":"https://api.github.com/repos/CTPUG/wafer/forks","keys_url":"https://api.github.com/repos/CTPUG/wafer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CTPUG/wafer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CTPUG/wafer/teams","hooks_url":"https://api.github.com/repos/CTPUG/wafer/hooks","issue_events_url":"https://api.github.com/repos/CTPUG/wafer/issues/events{/number}","events_url":"https://api.github.com/repos/CTPUG/wafer/events","assignees_url":"https://api.github.com/repos/CTPUG/wafer/assignees{/user}","branches_url":"https://api.github.com/repos/CTPUG/wafer/branches{/branch}","tags_url":"https://api.github.com/repos/CTPUG/wafer/tags","blobs_url":"https://api.github.com/repos/CTPUG/wafer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CTPUG/wafer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CTPUG/wafer/git/refs{/sha}","trees_url":"https://api.github.com/repos/CTPUG/wafer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/{sha}","languages_url":"https://api.github.com/repos/CTPUG/wafer/languages","stargazers_url":"https://api.github.com/repos/CTPUG/wafer/stargazers","contributors_url":"https://api.github.com/repos/CTPUG/wafer/contributors","subscribers_url":"https://api.github.com/repos/CTPUG/wafer/subscribers","subscription_url":"https://api.github.com/repos/CTPUG/wafer/subscription","commits_url":"https://api.github.com/repos/CTPUG/wafer/commits{/sha}","git_commits_url":"https://api.github.com/repos/CTPUG/wafer/git/commits{/sha}","comments_url":"https://api.github.com/repos/CTPUG/wafer/comments{/number}","issue_comment_url":"https://api.github.com/repos/CTPUG/wafer/issues/comments{/number}","contents_url":"https://api.github.com/repos/CTPUG/wafer/contents/{+path}","compare_url":"https://api.github.com/repos/CTPUG/wafer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CTPUG/wafer/merges","archive_url":"https://api.github.com/repos/CTPUG/wafer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CTPUG/wafer/downloads","issues_url":"https://api.github.com/repos/CTPUG/wafer/issues{/number}","pulls_url":"https://api.github.com/repos/CTPUG/wafer/pulls{/number}","milestones_url":"https://api.github.com/repos/CTPUG/wafer/milestones{/number}","notifications_url":"https://api.github.com/repos/CTPUG/wafer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CTPUG/wafer/labels{/name}","releases_url":"https://api.github.com/repos/CTPUG/wafer/releases{/id}","deployments_url":"https://api.github.com/repos/CTPUG/wafer/deployments","created_at":"2013-03-08T19:50:58Z","updated_at":"2016-01-14T16:21:23Z","pushed_at":"2016-03-15T19:14:02Z","git_url":"git://github.com/CTPUG/wafer.git","ssh_url":"git@github.com:CTPUG/wafer.git","clone_url":"https://github.com/CTPUG/wafer.git","svn_url":"https://github.com/CTPUG/wafer","homepage":null,"size":1147,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":23,"forks":9,"open_issues":23,"watchers":6,"default_branch":"master"}},"base":{"label":"CTPUG:master","ref":"master","sha":"200129ee0dfdd3d494228aa781572c43da13f235","user":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"repo":{"id":8658619,"name":"wafer","full_name":"CTPUG/wafer","owner":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CTPUG/wafer","description":"A wafer-thin web application for running small conferences. Built using Django.","fork":false,"url":"https://api.github.com/repos/CTPUG/wafer","forks_url":"https://api.github.com/repos/CTPUG/wafer/forks","keys_url":"https://api.github.com/repos/CTPUG/wafer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CTPUG/wafer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CTPUG/wafer/teams","hooks_url":"https://api.github.com/repos/CTPUG/wafer/hooks","issue_events_url":"https://api.github.com/repos/CTPUG/wafer/issues/events{/number}","events_url":"https://api.github.com/repos/CTPUG/wafer/events","assignees_url":"https://api.github.com/repos/CTPUG/wafer/assignees{/user}","branches_url":"https://api.github.com/repos/CTPUG/wafer/branches{/branch}","tags_url":"https://api.github.com/repos/CTPUG/wafer/tags","blobs_url":"https://api.github.com/repos/CTPUG/wafer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CTPUG/wafer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CTPUG/wafer/git/refs{/sha}","trees_url":"https://api.github.com/repos/CTPUG/wafer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/{sha}","languages_url":"https://api.github.com/repos/CTPUG/wafer/languages","stargazers_url":"https://api.github.com/repos/CTPUG/wafer/stargazers","contributors_url":"https://api.github.com/repos/CTPUG/wafer/contributors","subscribers_url":"https://api.github.com/repos/CTPUG/wafer/subscribers","subscription_url":"https://api.github.com/repos/CTPUG/wafer/subscription","commits_url":"https://api.github.com/repos/CTPUG/wafer/commits{/sha}","git_commits_url":"https://api.github.com/repos/CTPUG/wafer/git/commits{/sha}","comments_url":"https://api.github.com/repos/CTPUG/wafer/comments{/number}","issue_comment_url":"https://api.github.com/repos/CTPUG/wafer/issues/comments{/number}","contents_url":"https://api.github.com/repos/CTPUG/wafer/contents/{+path}","compare_url":"https://api.github.com/repos/CTPUG/wafer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CTPUG/wafer/merges","archive_url":"https://api.github.com/repos/CTPUG/wafer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CTPUG/wafer/downloads","issues_url":"https://api.github.com/repos/CTPUG/wafer/issues{/number}","pulls_url":"https://api.github.com/repos/CTPUG/wafer/pulls{/number}","milestones_url":"https://api.github.com/repos/CTPUG/wafer/milestones{/number}","notifications_url":"https://api.github.com/repos/CTPUG/wafer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CTPUG/wafer/labels{/name}","releases_url":"https://api.github.com/repos/CTPUG/wafer/releases{/id}","deployments_url":"https://api.github.com/repos/CTPUG/wafer/deployments","created_at":"2013-03-08T19:50:58Z","updated_at":"2016-01-14T16:21:23Z","pushed_at":"2016-03-15T19:14:02Z","git_url":"git://github.com/CTPUG/wafer.git","ssh_url":"git@github.com:CTPUG/wafer.git","clone_url":"https://github.com/CTPUG/wafer.git","svn_url":"https://github.com/CTPUG/wafer","homepage":null,"size":1147,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":23,"forks":9,"open_issues":23,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/209"},"html":{"href":"https://github.com/CTPUG/wafer/pull/209"},"issue":{"href":"https://api.github.com/repos/CTPUG/wafer/issues/209"},"comments":{"href":"https://api.github.com/repos/CTPUG/wafer/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/CTPUG/wafer/statuses/399e79e925b08cce2298ea504ff7e35252a3701e"}}}}