From f39bc62bdbf2fe663d53d19454b2c5c4f42b71b5 Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 3 Apr 2024 10:12:41 +0300 Subject: [PATCH 12/15] Enable administrator by default --- pyanaconda/ui/lib/users.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyanaconda/ui/lib/users.py b/pyanaconda/ui/lib/users.py index 9475075..08d96db 100644 --- a/pyanaconda/ui/lib/users.py +++ b/pyanaconda/ui/lib/users.py @@ -79,6 +79,8 @@ def get_user_list(users_module, add_default=False, add_if_not_empty=False): # we only add default user to an empty list, to add default user to # a populated list the add_if_not_empty option needs to be used if not user_data_list or add_if_not_empty: + data = UserData() + data.set_admin_priviledges(True) data = UserData() data.set_admin_priviledges(True) user_data_list.insert(0, data) -- 2.43.5