From e270aacfc51193e9fec9a94a3c2662cbc7635270 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 3 Jul 2024 14:24:37 +0100 Subject: [PATCH] refactor: fix refs to project_admin --> project_manager after PR merge --- src/backend/app/central/central_routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/app/central/central_routes.py b/src/backend/app/central/central_routes.py index 5bbbe4ff97..9dc14c6921 100644 --- a/src/backend/app/central/central_routes.py +++ b/src/backend/app/central/central_routes.py @@ -22,7 +22,7 @@ from fastapi.responses import JSONResponse from sqlalchemy.orm import Session -from app.auth.roles import project_admin +from app.auth.roles import project_manager from app.central import central_crud from app.db import database, db_models from app.models.enums import HTTPStatus @@ -59,9 +59,9 @@ async def get_form_lists( return forms -@router.post("/refresh_appuser_token") +@router.post("/refresh-appuser-token") async def refresh_appuser_token( - current_user: db_models.DbUser = Depends(project_admin), + current_user: db_models.DbUser = Depends(project_manager), db: Session = Depends(database.get_db), ): """Refreshes the token for the app user associated with a specific project.