forked from rDrama/rDrama
limit adding channels to kip
parent
92bdd67884
commit
4ebd8fb552
|
@ -539,6 +539,9 @@ if SITE == 'pcmemes.net':
|
||||||
@app.post('/live/add')
|
@app.post('/live/add')
|
||||||
@admin_level_required(2)
|
@admin_level_required(2)
|
||||||
def live_add(v):
|
def live_add(v):
|
||||||
|
if v.id != KIPPY_ID:
|
||||||
|
return {"error": 'Only Kippy can add channels!'}, 403
|
||||||
|
|
||||||
id = request.values.get('id').strip()
|
id = request.values.get('id').strip()
|
||||||
|
|
||||||
live = cache.get('live') or []
|
live = cache.get('live') or []
|
||||||
|
|
Loading…
Reference in New Issue