{"action":"created","comment":{"url":"https://api.github.com/repos/dionyziz/ting/pulls/comments/46438646","id":46438646,"diff_hunk":"@@ -7,9 +7,20 @@\n \n from .models import Channel, Message\n from .forms import MessageCreationForm, MessagePatchForm\n+from django.conf import settings\n+\n+\n+def privileged(function):\n+    def check (self, request, *args, **kwargs):\n+        if  settings.PASS != request.META.get('HTTP_AUTHORIZATION'):","path":"API/chat/views.py","position":9,"original_position":9,"commit_id":"128b75cfa62e3cc3c0745ca4c25132dcdde6e096","original_commit_id":"128b75cfa62e3cc3c0745ca4c25132dcdde6e096","user":{"login":"dionyziz","id":544572,"avatar_url":"https://avatars.githubusercontent.com/u/544572?v=3","gravatar_id":"","url":"https://api.github.com/users/dionyziz","html_url":"https://github.com/dionyziz","followers_url":"https://api.github.com/users/dionyziz/followers","following_url":"https://api.github.com/users/dionyziz/following{/other_user}","gists_url":"https://api.github.com/users/dionyziz/gists{/gist_id}","starred_url":"https://api.github.com/users/dionyziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dionyziz/subscriptions","organizations_url":"https://api.github.com/users/dionyziz/orgs","repos_url":"https://api.github.com/users/dionyziz/repos","events_url":"https://api.github.com/users/dionyziz/events{/privacy}","received_events_url":"https://api.github.com/users/dionyziz/received_events","type":"User","site_admin":false},"body":"nit","created_at":"2015-12-02T16:39:21Z","updated_at":"2015-12-02T16:39:21Z","html_url":"https://github.com/dionyziz/ting/pull/137#discussion_r46438646","pull_request_url":"https://api.github.com/repos/dionyziz/ting/pulls/137","_links":{"self":{"href":"https://api.github.com/repos/dionyziz/ting/pulls/comments/46438646"},"html":{"href":"https://github.com/dionyziz/ting/pull/137#discussion_r46438646"},"pull_request":{"href":"https://api.github.com/repos/dionyziz/ting/pulls/137"}}},"pull_request":{"url":"https://api.github.com/repos/dionyziz/ting/pulls/137","id":50758000,"html_url":"https://github.com/dionyziz/ting/pull/137","diff_url":"https://github.com/dionyziz/ting/pull/137.diff","patch_url":"https://github.com/dionyziz/ting/pull/137.patch","issue_url":"https://api.github.com/repos/dionyziz/ting/issues/137","number":137,"state":"open","locked":false,"title":"Password between node/django requests","user":{"login":"AlexandrosKal","id":11134852,"avatar_url":"https://avatars.githubusercontent.com/u/11134852?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandrosKal","html_url":"https://github.com/AlexandrosKal","followers_url":"https://api.github.com/users/AlexandrosKal/followers","following_url":"https://api.github.com/users/AlexandrosKal/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrosKal/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrosKal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrosKal/subscriptions","organizations_url":"https://api.github.com/users/AlexandrosKal/orgs","repos_url":"https://api.github.com/users/AlexandrosKal/repos","events_url":"https://api.github.com/users/AlexandrosKal/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrosKal/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-15T22:09:18Z","updated_at":"2015-12-02T16:39:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca6c47b1a050007fb20918db05ce25f3712f6e1f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dionyziz/ting/pulls/137/commits","review_comments_url":"https://api.github.com/repos/dionyziz/ting/pulls/137/comments","review_comment_url":"https://api.github.com/repos/dionyziz/ting/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dionyziz/ting/issues/137/comments","statuses_url":"https://api.github.com/repos/dionyziz/ting/statuses/128b75cfa62e3cc3c0745ca4c25132dcdde6e096","head":{"label":"AlexandrosKal:password","ref":"password","sha":"128b75cfa62e3cc3c0745ca4c25132dcdde6e096","user":{"login":"AlexandrosKal","id":11134852,"avatar_url":"https://avatars.githubusercontent.com/u/11134852?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandrosKal","html_url":"https://github.com/AlexandrosKal","followers_url":"https://api.github.com/users/AlexandrosKal/followers","following_url":"https://api.github.com/users/AlexandrosKal/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrosKal/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrosKal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrosKal/subscriptions","organizations_url":"https://api.github.com/users/AlexandrosKal/orgs","repos_url":"https://api.github.com/users/AlexandrosKal/repos","events_url":"https://api.github.com/users/AlexandrosKal/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrosKal/received_events","type":"User","site_admin":false},"repo":{"id":45315512,"name":"ting","full_name":"AlexandrosKal/ting","owner":{"login":"AlexandrosKal","id":11134852,"avatar_url":"https://avatars.githubusercontent.com/u/11134852?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandrosKal","html_url":"https://github.com/AlexandrosKal","followers_url":"https://api.github.com/users/AlexandrosKal/followers","following_url":"https://api.github.com/users/AlexandrosKal/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrosKal/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrosKal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrosKal/subscriptions","organizations_url":"https://api.github.com/users/AlexandrosKal/orgs","repos_url":"https://api.github.com/users/AlexandrosKal/repos","events_url":"https://api.github.com/users/AlexandrosKal/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrosKal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexandrosKal/ting","description":"A chat system","fork":true,"url":"https://api.github.com/repos/AlexandrosKal/ting","forks_url":"https://api.github.com/repos/AlexandrosKal/ting/forks","keys_url":"https://api.github.com/repos/AlexandrosKal/ting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexandrosKal/ting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexandrosKal/ting/teams","hooks_url":"https://api.github.com/repos/AlexandrosKal/ting/hooks","issue_events_url":"https://api.github.com/repos/AlexandrosKal/ting/issues/events{/number}","events_url":"https://api.github.com/repos/AlexandrosKal/ting/events","assignees_url":"https://api.github.com/repos/AlexandrosKal/ting/assignees{/user}","branches_url":"https://api.github.com/repos/AlexandrosKal/ting/branches{/branch}","tags_url":"https://api.github.com/repos/AlexandrosKal/ting/tags","blobs_url":"https://api.github.com/repos/AlexandrosKal/ting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexandrosKal/ting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexandrosKal/ting/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexandrosKal/ting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexandrosKal/ting/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexandrosKal/ting/languages","stargazers_url":"https://api.github.com/repos/AlexandrosKal/ting/stargazers","contributors_url":"https://api.github.com/repos/AlexandrosKal/ting/contributors","subscribers_url":"https://api.github.com/repos/AlexandrosKal/ting/subscribers","subscription_url":"https://api.github.com/repos/AlexandrosKal/ting/subscription","commits_url":"https://api.github.com/repos/AlexandrosKal/ting/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexandrosKal/ting/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexandrosKal/ting/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexandrosKal/ting/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexandrosKal/ting/contents/{+path}","compare_url":"https://api.github.com/repos/AlexandrosKal/ting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexandrosKal/ting/merges","archive_url":"https://api.github.com/repos/AlexandrosKal/ting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexandrosKal/ting/downloads","issues_url":"https://api.github.com/repos/AlexandrosKal/ting/issues{/number}","pulls_url":"https://api.github.com/repos/AlexandrosKal/ting/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexandrosKal/ting/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexandrosKal/ting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexandrosKal/ting/labels{/name}","releases_url":"https://api.github.com/repos/AlexandrosKal/ting/releases{/id}","created_at":"2015-10-31T19:38:29Z","updated_at":"2015-10-31T19:38:30Z","pushed_at":"2015-11-30T00:05:19Z","git_url":"git://github.com/AlexandrosKal/ting.git","ssh_url":"git@github.com:AlexandrosKal/ting.git","clone_url":"https://github.com/AlexandrosKal/ting.git","svn_url":"https://github.com/AlexandrosKal/ting","homepage":null,"size":802,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"dionyziz:master","ref":"master","sha":"c99d4925215523b5a033c196a0dde60cb8f58311","user":{"login":"dionyziz","id":544572,"avatar_url":"https://avatars.githubusercontent.com/u/544572?v=3","gravatar_id":"","url":"https://api.github.com/users/dionyziz","html_url":"https://github.com/dionyziz","followers_url":"https://api.github.com/users/dionyziz/followers","following_url":"https://api.github.com/users/dionyziz/following{/other_user}","gists_url":"https://api.github.com/users/dionyziz/gists{/gist_id}","starred_url":"https://api.github.com/users/dionyziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dionyziz/subscriptions","organizations_url":"https://api.github.com/users/dionyziz/orgs","repos_url":"https://api.github.com/users/dionyziz/repos","events_url":"https://api.github.com/users/dionyziz/events{/privacy}","received_events_url":"https://api.github.com/users/dionyziz/received_events","type":"User","site_admin":false},"repo":{"id":34073335,"name":"ting","full_name":"dionyziz/ting","owner":{"login":"dionyziz","id":544572,"avatar_url":"https://avatars.githubusercontent.com/u/544572?v=3","gravatar_id":"","url":"https://api.github.com/users/dionyziz","html_url":"https://github.com/dionyziz","followers_url":"https://api.github.com/users/dionyziz/followers","following_url":"https://api.github.com/users/dionyziz/following{/other_user}","gists_url":"https://api.github.com/users/dionyziz/gists{/gist_id}","starred_url":"https://api.github.com/users/dionyziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dionyziz/subscriptions","organizations_url":"https://api.github.com/users/dionyziz/orgs","repos_url":"https://api.github.com/users/dionyziz/repos","events_url":"https://api.github.com/users/dionyziz/events{/privacy}","received_events_url":"https://api.github.com/users/dionyziz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dionyziz/ting","description":"A chat system","fork":false,"url":"https://api.github.com/repos/dionyziz/ting","forks_url":"https://api.github.com/repos/dionyziz/ting/forks","keys_url":"https://api.github.com/repos/dionyziz/ting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dionyziz/ting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dionyziz/ting/teams","hooks_url":"https://api.github.com/repos/dionyziz/ting/hooks","issue_events_url":"https://api.github.com/repos/dionyziz/ting/issues/events{/number}","events_url":"https://api.github.com/repos/dionyziz/ting/events","assignees_url":"https://api.github.com/repos/dionyziz/ting/assignees{/user}","branches_url":"https://api.github.com/repos/dionyziz/ting/branches{/branch}","tags_url":"https://api.github.com/repos/dionyziz/ting/tags","blobs_url":"https://api.github.com/repos/dionyziz/ting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dionyziz/ting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dionyziz/ting/git/refs{/sha}","trees_url":"https://api.github.com/repos/dionyziz/ting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dionyziz/ting/statuses/{sha}","languages_url":"https://api.github.com/repos/dionyziz/ting/languages","stargazers_url":"https://api.github.com/repos/dionyziz/ting/stargazers","contributors_url":"https://api.github.com/repos/dionyziz/ting/contributors","subscribers_url":"https://api.github.com/repos/dionyziz/ting/subscribers","subscription_url":"https://api.github.com/repos/dionyziz/ting/subscription","commits_url":"https://api.github.com/repos/dionyziz/ting/commits{/sha}","git_commits_url":"https://api.github.com/repos/dionyziz/ting/git/commits{/sha}","comments_url":"https://api.github.com/repos/dionyziz/ting/comments{/number}","issue_comment_url":"https://api.github.com/repos/dionyziz/ting/issues/comments{/number}","contents_url":"https://api.github.com/repos/dionyziz/ting/contents/{+path}","compare_url":"https://api.github.com/repos/dionyziz/ting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dionyziz/ting/merges","archive_url":"https://api.github.com/repos/dionyziz/ting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dionyziz/ting/downloads","issues_url":"https://api.github.com/repos/dionyziz/ting/issues{/number}","pulls_url":"https://api.github.com/repos/dionyziz/ting/pulls{/number}","milestones_url":"https://api.github.com/repos/dionyziz/ting/milestones{/number}","notifications_url":"https://api.github.com/repos/dionyziz/ting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dionyziz/ting/labels{/name}","releases_url":"https://api.github.com/repos/dionyziz/ting/releases{/id}","created_at":"2015-04-16T18:31:45Z","updated_at":"2015-11-17T02:39:57Z","pushed_at":"2015-12-01T16:56:25Z","git_url":"git://github.com/dionyziz/ting.git","ssh_url":"git@github.com:dionyziz/ting.git","clone_url":"https://github.com/dionyziz/ting.git","svn_url":"https://github.com/dionyziz/ting","homepage":null,"size":999,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":4,"forks":11,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dionyziz/ting/pulls/137"},"html":{"href":"https://github.com/dionyziz/ting/pull/137"},"issue":{"href":"https://api.github.com/repos/dionyziz/ting/issues/137"},"comments":{"href":"https://api.github.com/repos/dionyziz/ting/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/dionyziz/ting/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/dionyziz/ting/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dionyziz/ting/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/dionyziz/ting/statuses/128b75cfa62e3cc3c0745ca4c25132dcdde6e096"}}}}