Skip to content

Commit

Permalink
refactor: fix refs to project_admin --> project_manager after PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jul 3, 2024
1 parent e97a04f commit e270aac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/app/central/central_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e270aac

Please sign in to comment.