add def cw_warnings

pull/220/head
G-tix 2023-12-21 19:47:34 +00:00
parent fdc51b5116
commit 0da11d14d6
1 changed files with 5 additions and 0 deletions

View File

@ -276,6 +276,11 @@ class User(Base):
def cursormarsey(self):
return session.get('cursormarsey', CURSORMARSEY_DEFAULT)
@property
@lazy
def cw_warnings(self):
return bool(session.get('cw_warnings', True))
@property
@lazy
def nsfw_warnings(self):