[gnome-system-tools] Don't consider all groups as privileges
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-system-tools] Don't consider all groups as privileges
- Date: Mon, 29 Jun 2009 21:07:37 +0000 (UTC)
commit 10f02635e9096f5b874d0a160110220c71bc0d44
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Jun 27 20:59:03 2009 +0200
Don't consider all groups as privileges
Only update membership for groups that actually match a privilege. The current code was resetting user's membership for all groups on the system. This fix will be used by an upcoming patch implementing a password-less login option.
src/users/privileges-table.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/users/privileges-table.c b/src/users/privileges-table.c
index aca57f1..80869ed 100644
--- a/src/users/privileges-table.c
+++ b/src/users/privileges-table.c
@@ -177,6 +177,8 @@ privileges_table_add_group (OobsGroup *group, OobsListIter *list_iter)
GtkTreeIter iter;
p = privilege_search (oobs_group_get_name (group));
+ if (p == NULL) /* Ignore groups that don't match a privilege */
+ return;
table = gst_dialog_get_widget (tool->main_dialog, "user_privileges");
model = gtk_tree_view_get_model (GTK_TREE_VIEW (table));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]