fix(jitsi): allow non-moderators to request Jitsi tokens

Removed the 403 guard that blocked non-moderators. is_moderator is
already passed through to the token payload, so participants get
"moderator": false as expected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-31 17:46:27 -04:00
parent 153c2ce6dd
commit ebc5db96da

View File

@@ -187,8 +187,6 @@ class JitsiTokenRequest(BaseModel):
@router.post("/jitsi_token") @router.post("/jitsi_token")
async def create_jitsi_jwt(request_data: JitsiTokenRequest = Body(...)): async def create_jitsi_jwt(request_data: JitsiTokenRequest = Body(...)):
log.setLevel(logging.INFO) log.setLevel(logging.INFO)
if not request_data.is_moderator:
raise HTTPException(status_code=403, detail="JWT generation is only permitted for moderators.")
try: try:
payload = { payload = {