30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
From 6ee1429f5e8e7e49469acde9a426d4b9b4273eab Mon Sep 17 00:00:00 2001
|
|
From: Michael Catanzaro <mcatanzaro@redhat.com>
|
|
Date: Thu, 5 Aug 2021 16:43:13 -0500
|
|
Subject: [PATCH] account: enterprise accounts should be admins too!
|
|
|
|
If the newly-created user is not a local administrator, then there is no
|
|
local administrator at all, and that is sad. Nobody wants that. Whoever
|
|
installs the system should control it.
|
|
|
|
Fixes #80
|
|
---
|
|
gnome-initial-setup/pages/account/gis-account-page-enterprise.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
|
|
index 799c51f1..52df9a3a 100644
|
|
--- a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
|
|
+++ b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
|
|
@@ -176,6 +176,7 @@ on_permit_user_login (GObject *source,
|
|
g_debug ("Caching remote user: %s", login);
|
|
|
|
priv->act_user = act_user_manager_cache_user (priv->act_client, login, NULL);
|
|
+ act_user_set_account_type (priv->act_user, ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR);
|
|
g_signal_emit (page, signals[USER_CACHED], 0, priv->act_user, gtk_entry_get_text (GTK_ENTRY (priv->password)));
|
|
apply_complete (page, TRUE);
|
|
|
|
--
|
|
GitLab
|
|
|