diff --git a/src/web/__main__.py b/src/web/__main__.py index 0863fa73..594a1380 100644 --- a/src/web/__main__.py +++ b/src/web/__main__.py @@ -77,6 +77,8 @@ def parse_args(): help='Active to disable admin module.') group.add_argument('--disable_custom_css', default=False, action='store_true', help='Active to disable custom css module.') + group.add_argument('--hide_menu_login', default=False, action='store_true', + help='Active to hide login module from menu.') _parser = parser.parse_args() _parser.db_demo_path = DB_DEMO_PATH diff --git a/src/web/base_handler.py b/src/web/base_handler.py index 5ff5ec2f..14205ceb 100644 --- a/src/web/base_handler.py +++ b/src/web/base_handler.py @@ -32,6 +32,7 @@ def initialize(self, **kwargs): "disable_user_character": kwargs.get("disable_user_character"), "disable_admin": kwargs.get("disable_admin"), "disable_login": kwargs.get("disable_login"), + "hide_menu_login": kwargs.get("hide_menu_login"), "disable_custom_css": kwargs.get("disable_custom_css"), "url": kwargs.get("url"), "port": kwargs.get("port"), diff --git a/src/web/partials/_base.html b/src/web/partials/_base.html index 83d204d8..c1d9373f 100644 --- a/src/web/partials/_base.html +++ b/src/web/partials/_base.html @@ -81,7 +81,7 @@