Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
create_user: Remove tos parameter from management command.
Tim Abbottb4507df8fa2c
diff --git a/zerver/lib/management.py b/zerver/lib/management.pyindex 904e6732257..01c6159cf20 100644--- a/zerver/lib/management.py+++ b/zerver/lib/management.py@@ -73,12 +73,6 @@ server via `ps -ef` or reading bash history. Prefer--password-file.""",)parser.add_argument("--password-file", help="File containing a password for the new user.")- parser.add_argument(- "--this-user-has-accepted-the-tos",- dest="tos",- action="store_true",- help="Acknowledgement that the user has already accepted the ToS.",- )def add_user_list_args(self,diff --git a/zerver/management/commands/create_user.py b/zerver/management/commands/create_user.pyindex 9abb9dc2928..7853db6fe0c 100644--- a/zerver/management/commands/create_user.py+++ b/zerver/management/commands/create_user.py@@ -27,11 +27,6 @@ Omit both <email> and <full name> for interactive user creation.)def handle(self, *args: Any, **options: Any) -> None:- if not options["tos"]:- raise CommandError(- """You must confirm that this user has accepted the-Terms of Service by passing --this-user-has-accepted-the-tos."""- )realm = self.get_realm(options)assert realm is not None # Should be ensured by parser