[gnome-initial-setup/mcatanzaro/enterprise_login] account: enterprise accounts should be admins too!
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/mcatanzaro/enterprise_login] account: enterprise accounts should be admins too!
- Date: Thu, 5 Aug 2021 21:44:19 +0000 (UTC)
commit 6ee1429f5e8e7e49469acde9a426d4b9b4273eab
Author: Michael Catanzaro <mcatanzaro redhat com>
Date: Thu Aug 5 16:43:13 2021 -0500
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]