[gnome-initial-setup/mcatanzaro/enterprise_login] account: enterprise accounts should be admins too!




commit 7405ca79d014f7efb2da69af353ef2c2e2b4508c
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
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/122>

 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]