use is_suspended
parent
337e243e9f
commit
7a62c3fc4a
|
@ -58,7 +58,7 @@ def refresh_chat(chat_id):
|
|||
@socketio.on('speak')
|
||||
@auth_required_socketio
|
||||
def speak(data, v):
|
||||
if v.is_banned: return ''
|
||||
if v.is_suspended: return ''
|
||||
|
||||
try: chat_id = int(data['chat_id'])
|
||||
except: return ''
|
||||
|
@ -270,7 +270,7 @@ def heartbeat(v):
|
|||
@socketio.on('typing')
|
||||
@auth_required_socketio
|
||||
def typing_indicator(data, v):
|
||||
if v.is_banned: return ''
|
||||
if v.is_suspended: return ''
|
||||
|
||||
if not request.referrer: return ''
|
||||
room = request.referrer
|
||||
|
|
|
@ -461,7 +461,7 @@ def is_repost(v):
|
|||
def submit_post(v, hole=None):
|
||||
flag_draft = request.values.get("draft", False, bool)
|
||||
|
||||
if v.is_permabanned or (v.is_banned and not flag_draft):
|
||||
if v.is_permabanned or (v.is_suspended and not flag_draft):
|
||||
abort(403, "You can't perform this action while banned!")
|
||||
|
||||
url = request.values.get("url", "").strip()
|
||||
|
|
Loading…
Reference in New Issue