Skip to content

Commit

Permalink
fix logged user error
Browse files Browse the repository at this point in the history
  • Loading branch information
betulkaraagoz committed Aug 13, 2024
1 parent f1cb3ee commit d865997
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions AdminManagement/views/case/adminCaseDetailController.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
# Create your views here.
@api_view(["GET", "PATCH", "DELETE"])
def adminCaseDetailController(request, id, **kwargs):
# loggedUser detected in UNHCR_Backend.middlewares.authMiddleware
user = kwargs["loggedUser"]
try:
case = Case.objects.get(ID=id)
except Case.DoesNotExist as err:
Expand Down
3 changes: 0 additions & 3 deletions AdminManagement/views/case/adminCasesController.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
# Create your views here.
@api_view(["GET", "POST"])
def adminCasesController(request, **kwargs):
# loggedUser detected in UNHCR_Backend.middlewares.authMiddleware
user = kwargs["loggedUser"]

if request.method == "GET":
"""
Lists all cases of the logged in user.
Expand Down

0 comments on commit d865997

Please sign in to comment.