streamer permissions
parent
8d51980dca
commit
039fa606d6
|
@ -186,6 +186,7 @@ PERMS = { # Minimum admin_level to perform action.
|
||||||
'NOTIFICATIONS_FOR_SPECIFIC_WPD_COMMENTS': 1,
|
'NOTIFICATIONS_FOR_SPECIFIC_WPD_COMMENTS': 1,
|
||||||
'MESSAGE_BLOCKED_USERS': 1,
|
'MESSAGE_BLOCKED_USERS': 1,
|
||||||
'APPS_MODERATE': 3,
|
'APPS_MODERATE': 3,
|
||||||
|
'STREAMERS_MODERATION': 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
FEATURES = {
|
FEATURES = {
|
||||||
|
|
|
@ -559,7 +559,7 @@ if SITE == 'pcmemes.net':
|
||||||
return render_template('live.html', v=v, live=live, offline=offline)
|
return render_template('live.html', v=v, live=live, offline=offline)
|
||||||
|
|
||||||
@app.post('/live/add')
|
@app.post('/live/add')
|
||||||
@admin_level_required(2)
|
@admin_level_required(PERMS['STREAMERS_MODERATION'])
|
||||||
def live_add(v):
|
def live_add(v):
|
||||||
link = request.values.get('link').strip()
|
link = request.values.get('link').strip()
|
||||||
|
|
||||||
|
@ -598,7 +598,7 @@ if SITE == 'pcmemes.net':
|
||||||
return redirect('/live')
|
return redirect('/live')
|
||||||
|
|
||||||
@app.post('/live/remove')
|
@app.post('/live/remove')
|
||||||
@admin_level_required(2)
|
@admin_level_required(PERMS['STREAMERS_MODERATION'])
|
||||||
def live_remove(v):
|
def live_remove(v):
|
||||||
id = request.values.get('id').strip()
|
id = request.values.get('id').strip()
|
||||||
if not id: abort(400)
|
if not id: abort(400)
|
||||||
|
|
Loading…
Reference in New Issue