[gnome-control-center/gnome-3-8] users: Improve logged-in check when deleting users



commit b9836c120a94c21f6d2eb8bc706408741b16b346
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 10 12:52:37 2014 -0500

    users: Improve logged-in check when deleting users
    
    When deleting a user account, we try to check if the user is
    still logged in, but we are using an accountsservice API that
    ignores console logins. But deleting a user that is logged
    in on the console is just as bad, so use
    act_user_is_logged_in_anywhere instead, which includes console
    logins.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721951

 panels/user-accounts/um-user-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 2c02520..058eaad 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -478,7 +478,7 @@ delete_user (GtkButton *button, CcUserPanelPrivate *d)
                 g_signal_connect (dialog, "response",
                                   G_CALLBACK (gtk_widget_destroy), NULL);
         }
-        else if (act_user_is_logged_in (user)) {
+        else if (act_user_is_logged_in_anywhere (user)) {
                 dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (d->main_box)),
                                                  0,
                                                  GTK_MESSAGE_INFO,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]