From 4ebd8fb552f2fda30eef82d39d1c344fbfd3ace3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 25 Sep 2022 07:42:29 +0200 Subject: [PATCH] limit adding channels to kip --- files/routes/static.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/static.py b/files/routes/static.py index 04b3a4320a..d1bd790cf0 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -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 []