{"action":"closed","issue":{"url":"https://api.github.com/repos/GENI-NSF/geni-portal/issues/1506","labels_url":"https://api.github.com/repos/GENI-NSF/geni-portal/issues/1506/labels{/name}","comments_url":"https://api.github.com/repos/GENI-NSF/geni-portal/issues/1506/comments","events_url":"https://api.github.com/repos/GENI-NSF/geni-portal/issues/1506/events","html_url":"https://github.com/GENI-NSF/geni-portal/issues/1506","id":100313575,"number":1506,"title":"Check portalIsAuthorized earlier in dashboard.php","user":{"login":"tcmitchell","id":340136,"avatar_url":"https://avatars.githubusercontent.com/u/340136?v=3","gravatar_id":"","url":"https://api.github.com/users/tcmitchell","html_url":"https://github.com/tcmitchell","followers_url":"https://api.github.com/users/tcmitchell/followers","following_url":"https://api.github.com/users/tcmitchell/following{/other_user}","gists_url":"https://api.github.com/users/tcmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/tcmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcmitchell/subscriptions","organizations_url":"https://api.github.com/users/tcmitchell/orgs","repos_url":"https://api.github.com/users/tcmitchell/repos","events_url":"https://api.github.com/users/tcmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/tcmitchell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GENI-NSF/geni-portal/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"charliemeyer","id":6471953,"avatar_url":"https://avatars.githubusercontent.com/u/6471953?v=3","gravatar_id":"","url":"https://api.github.com/users/charliemeyer","html_url":"https://github.com/charliemeyer","followers_url":"https://api.github.com/users/charliemeyer/followers","following_url":"https://api.github.com/users/charliemeyer/following{/other_user}","gists_url":"https://api.github.com/users/charliemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/charliemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charliemeyer/subscriptions","organizations_url":"https://api.github.com/users/charliemeyer/orgs","repos_url":"https://api.github.com/users/charliemeyer/repos","events_url":"https://api.github.com/users/charliemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/charliemeyer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GENI-NSF/geni-portal/milestones/78","html_url":"https://github.com/GENI-NSF/geni-portal/milestones/3.3","labels_url":"https://api.github.com/repos/GENI-NSF/geni-portal/milestones/78/labels","id":1262660,"number":78,"title":"3.3","description":"","creator":{"login":"ahelsing","id":12136824,"avatar_url":"https://avatars.githubusercontent.com/u/12136824?v=3","gravatar_id":"","url":"https://api.github.com/users/ahelsing","html_url":"https://github.com/ahelsing","followers_url":"https://api.github.com/users/ahelsing/followers","following_url":"https://api.github.com/users/ahelsing/following{/other_user}","gists_url":"https://api.github.com/users/ahelsing/gists{/gist_id}","starred_url":"https://api.github.com/users/ahelsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahelsing/subscriptions","organizations_url":"https://api.github.com/users/ahelsing/orgs","repos_url":"https://api.github.com/users/ahelsing/repos","events_url":"https://api.github.com/users/ahelsing/events{/privacy}","received_events_url":"https://api.github.com/users/ahelsing/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":15,"state":"open","created_at":"2015-08-19T14:37:51Z","updated_at":"2015-08-24T17:33:50Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-08-11T13:42:27Z","updated_at":"2015-08-24T17:33:50Z","closed_at":"2015-08-24T17:33:50Z","body":"The check for portal authorization should happen earlier so less work is done before redirecting the user to the authorization page. Some of the work currently done before the check may require authorization which would lead to an error prior to redirection."}}