{"action":"closed","number":218,"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/218","id":64043142,"html_url":"https://github.com/fossasia/open-event-orga-server/pull/218","diff_url":"https://github.com/fossasia/open-event-orga-server/pull/218.diff","patch_url":"https://github.com/fossasia/open-event-orga-server/pull/218.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/218","number":218,"state":"closed","locked":false,"title":"Show event switcher dropdown menu only when logged in.","user":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"body":"#### The problem\r\nThe event switcher menu is shown even when the user is Unauthenticated. And clicking on any event/link in the dropdown menu takes the user back to the login page. \r\n\r\nSo, it's better if the menu is not shown when the user is not logged it. (all the functionality the menu provides, will anyway work only if the user is logged in)\r\n\r\n#### What does this PR do?\r\n- Shows the event switcher menu only when the user is logged in\r\n\r\n#### How was this tested\r\n- Manually in a browser","created_at":"2016-03-24T14:40:36Z","updated_at":"2016-03-26T23:44:09Z","closed_at":"2016-03-26T23:44:09Z","merged_at":"2016-03-26T23:44:09Z","merge_commit_sha":"998183cd4797133fdd4ccc38c07e6ef3f9369b00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/218/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/218/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/218/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/f5b121fb776197aa39b84d9c244c36604ec27bf3","head":{"label":"niranjan94:patch/event-switcher","ref":"patch/event-switcher","sha":"f5b121fb776197aa39b84d9c244c36604ec27bf3","user":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"repo":{"id":54035328,"name":"open-event-orga-server","full_name":"niranjan94/open-event-orga-server","owner":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niranjan94/open-event-orga-server","description":"Open Event Orga Server","fork":true,"url":"https://api.github.com/repos/niranjan94/open-event-orga-server","forks_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/deployments","created_at":"2016-03-16T13:45:11Z","updated_at":"2016-03-19T14:39:35Z","pushed_at":"2016-03-26T13:03:41Z","git_url":"git://github.com/niranjan94/open-event-orga-server.git","ssh_url":"git@github.com:niranjan94/open-event-orga-server.git","clone_url":"https://github.com/niranjan94/open-event-orga-server.git","svn_url":"https://github.com/niranjan94/open-event-orga-server","homepage":"http://open-event.herokuapp.com/admin/","size":1668,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"fossasia:master","ref":"master","sha":"e8c256b6ff6547822ee5958b2b9a2f0340c600c0","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35270176,"name":"open-event-orga-server","full_name":"fossasia/open-event-orga-server","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-orga-server","description":"Open Event Orga Server","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-orga-server","forks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/deployments","created_at":"2015-05-08T09:16:19Z","updated_at":"2016-03-26T12:10:42Z","pushed_at":"2016-03-26T23:44:09Z","git_url":"git://github.com/fossasia/open-event-orga-server.git","ssh_url":"git@github.com:fossasia/open-event-orga-server.git","clone_url":"https://github.com/fossasia/open-event-orga-server.git","svn_url":"https://github.com/fossasia/open-event-orga-server","homepage":null,"size":1778,"stargazers_count":14,"watchers_count":14,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":28,"forks":39,"open_issues":28,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/218"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/218"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/218"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/f5b121fb776197aa39b84d9c244c36604ec27bf3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"leto","id":30298,"avatar_url":"https://avatars.githubusercontent.com/u/30298?v=3","gravatar_id":"","url":"https://api.github.com/users/leto","html_url":"https://github.com/leto","followers_url":"https://api.github.com/users/leto/followers","following_url":"https://api.github.com/users/leto/following{/other_user}","gists_url":"https://api.github.com/users/leto/gists{/gist_id}","starred_url":"https://api.github.com/users/leto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leto/subscriptions","organizations_url":"https://api.github.com/users/leto/orgs","repos_url":"https://api.github.com/users/leto/repos","events_url":"https://api.github.com/users/leto/events{/privacy}","received_events_url":"https://api.github.com/users/leto/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}