allow user css

This commit is contained in:
Ville Rantanen
2023-07-23 22:11:15 +03:00
parent 9437e64936
commit 79780f0769
2 changed files with 4 additions and 1 deletions

View File

@@ -34,12 +34,12 @@ config = Config()
config.registration_enabled,
config.login_required
) = db.get_config()
config.user_css = os.path.exists(os.path.join(app.static_folder, 'user.css'))
if config.version != VERSION:
print(f"Incompatible version {config.version} (expected {VERSION})")
sys.exit(1)
class Role:
USER = 0
MODERATOR = 1