This commit is contained in:
Timothy Jaeryang Baek
2026-01-23 01:23:34 +04:00
parent fa6f238777
commit 3bec320bb9
+1 -1
View File
@@ -81,7 +81,7 @@ router = APIRouter()
############################ ############################
def check_channels_access(request: Request, user=Optional[UserModel] = None): def check_channels_access(request: Request, user: Optional[UserModel] = None):
"""Dependency to ensure channels are globally enabled.""" """Dependency to ensure channels are globally enabled."""
if not request.app.state.config.ENABLE_CHANNELS: if not request.app.state.config.ENABLE_CHANNELS:
raise HTTPException( raise HTTPException(