user-accounts: do not display system accounts

This prevents the user panel from displaying system accounts
and allowing the user to remove them.

https://bugzilla.gnome.org/show_bug.cgi?id=701514
This commit is contained in:
Philippe Coval 2013-06-25 16:07:51 +02:00 committed by Thomas Wood
parent b37bfb578b
commit 26c44b2221

View file

@ -149,6 +149,10 @@ user_added (ActUserManager *um, ActUser *user, CcUserPanelPrivate *d)
GtkTreeSelection *selection;
gint sort_key;
if (act_user_is_system_account (user)) {
return;
}
g_debug ("user added: %d %s\n", act_user_get_uid (user), get_real_or_user_name (user));
widget = get_widget (d, "list-treeview");
model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget));