add status changing

This commit is contained in:
2025-01-26 21:10:06 +01:00
parent c22af013fd
commit cfa1402984
2 changed files with 4 additions and 2 deletions

View File

@@ -139,6 +139,7 @@ async def delete_users_id(item_id : str, authorize: Annotated[bool, Depends(perm
response = JSONResponse(content=content)
return response
@router.put("/users/me",tags=["users"])
async def update_users_me(current_user: Annotated[users.User, Depends(users_token.get_current_active_user)], authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin", "User"]))], userSingle: users.UserIn | None = None):
user_repository = users.UserRepository(database=database.database)