streamer permissions

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-05 23:22:42 -07:00
parent 8d51980dca
commit 039fa606d6
2 changed files with 3 additions and 2 deletions

View File

@ -186,6 +186,7 @@ PERMS = { # Minimum admin_level to perform action.
'NOTIFICATIONS_FOR_SPECIFIC_WPD_COMMENTS': 1,
'MESSAGE_BLOCKED_USERS': 1,
'APPS_MODERATE': 3,
'STREAMERS_MODERATION': 2,
}
FEATURES = {

View File

@ -559,7 +559,7 @@ if SITE == 'pcmemes.net':
return render_template('live.html', v=v, live=live, offline=offline)
@app.post('/live/add')
@admin_level_required(2)
@admin_level_required(PERMS['STREAMERS_MODERATION'])
def live_add(v):
link = request.values.get('link').strip()
@ -598,7 +598,7 @@ if SITE == 'pcmemes.net':
return redirect('/live')
@app.post('/live/remove')
@admin_level_required(2)
@admin_level_required(PERMS['STREAMERS_MODERATION'])
def live_remove(v):
id = request.values.get('id').strip()
if not id: abort(400)