remotes/1693045480750635534/spooky-22
Aevann1 2022-04-12 22:45:07 +02:00
parent e42e7c37b7
commit 5a6ac9d8b2
4 changed files with 6 additions and 6 deletions

View File

@ -185,7 +185,7 @@ ACTIONTYPES = {
"icon": 'fa-gas-pump-slash',
"color": 'bg-danger'
},
'disable_Readonly mode': {
'disable_Read-only mode': {
"str": 'disabled readonly mode',
"icon": 'fa-book',
"color": 'bg-danger'
@ -235,7 +235,7 @@ ACTIONTYPES = {
"icon": 'fa-gas-pump',
"color": 'bg-success'
},
'enable_Readonly mode': {
'enable_Read-only mode': {
"str": 'enabled readonly mode',
"icon": 'fa-book',
"color": 'bg-success'

View File

@ -31,7 +31,7 @@ def get_logged_in_user():
elif not v.validate_formkey(submitted_key): abort(401)
if request.method.lower() != "get" and app.config['SETTINGS']['Readonly mode'] and not (v and v.admin_level):
if request.method.lower() != "get" and app.config['SETTINGS']['Read-only mode'] and not (v and v.admin_level):
abort(403)
return v

View File

@ -75,8 +75,8 @@
</div>
<div class="custom-control custom-switch">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Readonly mode" {% if site_settings['Readonly mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Readonly mode');">
<label class="custom-control-label" for="Readonly mode">Readonly mode</label>
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Read-only mode" {% if site_settings['Read-only mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Read-only mode');">
<label class="custom-control-label" for="Read-only mode">Read-only mode</label>
</div>
<div class="custom-control custom-switch">

View File

@ -1 +1 @@
{"Bots": true, "Fart mode": false, "Readonly mode": false, "Signups": true}
{"Bots": true, "Fart mode": false, "Read-only mode": false, "Signups": true}