mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42:15 +03:00
conf agreement parameter checker added
This commit is contained in:
parent
2285832b9d
commit
fe2856d3d0
1 changed files with 6 additions and 6 deletions
|
@ -72,7 +72,7 @@ class CommandRunner(object):
|
||||||
agreement = Agreement()
|
agreement = Agreement()
|
||||||
agreement_choice = None
|
agreement_choice = None
|
||||||
|
|
||||||
if agreement.check_agreement(username) is not True:
|
if agreement.check_agreement(username) is not True and System.Ahenk.agreement() == '1':
|
||||||
self.logger.debug('User {0} has not accepted agreement.'.format(username))
|
self.logger.debug('User {0} has not accepted agreement.'.format(username))
|
||||||
thread_ask = Process(target=agreement.ask, args=(username, display,))
|
thread_ask = Process(target=agreement.ask, args=(username, display,))
|
||||||
thread_ask.start()
|
thread_ask.start()
|
||||||
|
@ -110,7 +110,7 @@ class CommandRunner(object):
|
||||||
else:
|
else:
|
||||||
agreement_choice = True
|
agreement_choice = True
|
||||||
|
|
||||||
if agreement_choice is True:
|
if agreement_choice is True or System.Ahenk.agreement() != '1':
|
||||||
self.db_service.delete('session', 'username=\'{0}\''.format(username))
|
self.db_service.delete('session', 'username=\'{0}\''.format(username))
|
||||||
|
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
|
|
Loading…
Reference in a new issue