Skip to content

Commit

Permalink
Merge pull request #2155 from SharonAliyas5573/dev
Browse files Browse the repository at this point in the history
Fix Launchpad list api
  • Loading branch information
jelanmathewjames authored Jul 11, 2024
2 parents ce1b24d + 8f559fd commit 6c06d97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/launchpad/launchpad_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,7 @@ def post(self, request):
class LaunchPadListAdmin(APIView):

def get(self, request):
data = request.data
auth_mail = data.pop('current_user', None)
auth_mail = request.query_params.get('current_user', None)
auth_mail = auth_mail[0] if isinstance(auth_mail, list) else auth_mail
if not (auth_user := LaunchPadUsers.objects.filter(email=auth_mail, role=LaunchPadRoles.ADMIN.value).first()):
return CustomResponse(general_message="Unauthorized").get_failure_response()
Expand Down

0 comments on commit 6c06d97

Please sign in to comment.