Skip to content

Commit f8b1eb8

Browse files
authored
Update fmt.Println message from 'Hello' to 'Goodbye'
1 parent 3f65b51 commit f8b1eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ async def get_current_user(token: str = Depends(oauth2_scheme)):
407407
if user_id is None: raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid token payload")
408408
return {"id": int(user_id), "role": payload.get("role", "viewer")}
409409

410-
def require_role(allowed_roles: list[str]):
410+
def require_role(allowed_roles: List[str]):
411411
async def role_checker(current_user: dict = Depends(get_current_user)):
412412
if current_user.get("role") not in allowed_roles: raise HTTPException(status_code=403, detail="Insufficient permissions")
413413
return current_user

0 commit comments

Comments
 (0)