From 1286f0a3f2967c1b39bb2cd283b6ce33b5655706 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Tue, 31 Oct 2023 17:49:57 +0100 Subject: [PATCH] remove current user for groups --- app/routers/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/users.py b/app/routers/users.py index 770f045..325db86 100644 --- a/app/routers/users.py +++ b/app/routers/users.py @@ -104,7 +104,7 @@ async def delete_users_me(current_user: Annotated[users.User, Depends(users_toke return current_user @router.delete("/users/groups",tags=["users"]) -async def delete_users_groups(current_user: Annotated[users.User, Depends(users_token.get_current_active_user)], authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin", "User"]))], remove: bool = False, userids: list[str] = []): +async def delete_users_groups(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))], remove: bool = False, userids: list[str] = []): if len(userids) == 0: raise HTTPException( status_code=status.HTTP_400_BAD_REQUEST,