diff --git a/app/routers/users.py b/app/routers/users.py index dc1498e..6d722c5 100644 --- a/app/routers/users.py +++ b/app/routers/users.py @@ -9,6 +9,7 @@ router = APIRouter() @router.get("/users", tags=["users"], response_model=list[users.UserOut]) async def read_users(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))]): listUsers = [] + user_repository = users.UserRepository(database=database.database) for fake in users_active.fake_users: user = users.UserOut(id=fake["id"], username=fake["username"], disabled=fake["disabled"], roles=fake["roles"]) listUsers.append(user)