Skip to content

Commit

Permalink
Merge pull request #15 from DigitalProductInnovationAndDevelopment/fi…
Browse files Browse the repository at this point in the history
…x-admin-logged-user-error

fix(no-ticket): fix logged user error
  • Loading branch information
betulkaraagoz authored Aug 13, 2024
2 parents de4ba23 + d865997 commit 0daace7
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 0daace7

Please sign in to comment.