feat: status includes is_admin, gear icon in header for admins
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ async def setup_post(body: dict):
|
||||
|
||||
@router.get("/status")
|
||||
async def get_status(user: dict = Depends(current_user)):
|
||||
return {"status": state.status, "username": user["username"]}
|
||||
return {"status": state.status, "username": user["username"], "is_admin": user.get("is_admin", False)}
|
||||
|
||||
|
||||
@router.post("/toggle")
|
||||
|
||||
Reference in New Issue
Block a user