mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 02:10:55 +00:00
Comment.
This commit is contained in:
parent
250e143084
commit
8bad40701b
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ class RegistrationConfig(Config):
|
|||
def __init__(self, args):
|
||||
super(RegistrationConfig, self).__init__(args)
|
||||
|
||||
# `args.disable_registration` may either be a bool or a string depending
|
||||
# on if the option was given a value (e.g. --disable-registration=false
|
||||
# would set `args.disable_registration` to "false" not False.)
|
||||
self.disable_registration = bool(
|
||||
distutils.util.strtobool(str(args.disable_registration))
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue