add age gate enforcement

This commit is contained in:
anxdpanic 2017-10-12 12:14:52 -04:00
parent 7cc3a28770
commit e3cae8e039
8 changed files with 45 additions and 8 deletions

View file

@ -118,3 +118,6 @@ class AbstractSettings(object):
index = self.get_int(constants.setting.SAFE_SEARCH, 0)
values = {0: 'moderate', 1: 'none', 2: 'strict'}
return values[index]
def age_gate(self):
return self.get_bool(constants.setting.AGE_GATE, True)