limit adding channels to kip

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-09-25 07:42:29 +02:00
parent 92bdd67884
commit 4ebd8fb552
1 changed files with 3 additions and 0 deletions

View File

@ -539,6 +539,9 @@ if SITE == 'pcmemes.net':
@app.post('/live/add')
@admin_level_required(2)
def live_add(v):
if v.id != KIPPY_ID:
return {"error": 'Only Kippy can add channels!'}, 403
id = request.values.get('id').strip()
live = cache.get('live') or []