forked from rDrama/rDrama
fix error
parent
854693124a
commit
39c210c153
|
@ -182,7 +182,7 @@ def settings_personal_post(v):
|
|||
updated = True
|
||||
session["over_18"] = int(request.values.get("over_18") == 'true')
|
||||
|
||||
elif not updated and v.can_toggle_event_music and request.values.get("event_music", v.event_music) != v.event_music:
|
||||
elif not updated and IS_EVENT() and v.can_toggle_event_music and request.values.get("event_music", v.event_music) != v.event_music:
|
||||
updated = True
|
||||
session['event_music'] = request.values.get("event_music", v.event_music) == 'true'
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<section id="site-settings-experience-section" class="settings-section-section">
|
||||
<h5>Site Experience</h5>
|
||||
<div class="settings-section rounded" id="site-settings-experience">
|
||||
{% if v.can_toggle_event_music %}
|
||||
{% if IS_EVENT() and v.can_toggle_event_music %}
|
||||
{{common.toggle_section('Event Music', 'event_music_switch', 'event_music', v.event_music, 'Toggle event music.', false)}}
|
||||
{% endif %}
|
||||
<div class="d-lg-flex border-bottom">
|
||||
|
|
Loading…
Reference in New Issue