Skip to content

Commit

Permalink
wip Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Codered9 committed Apr 28, 2022
1 parent 993119c commit b70486b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/githubsrm/apis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def verify_github_details(verify_user=False, **kwargs):
if verify_user:
response = session.get(f"{github_api}/users/{kwargs['user_id']}")
res = response.json()
# Will send False to the frontend if server is down or User ID is not a personal id but a Organisation ID.
if(response.status_code == 200):
if(res['type']=="User" ):
return True
Expand Down

0 comments on commit b70486b

Please sign in to comment.