[gnome-control-center/gnome-3-16] user-accounts: Fix enterprise user login permitting
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-16] user-accounts: Fix enterprise user login permitting
- Date: Wed, 15 Jul 2015 15:36:39 +0000 (UTC)
commit 18b4a3ee8d8dda1e54e32555c509df950cc7da0e
Author: Ondrej Holy <oholy redhat com>
Date: Tue Jul 14 15:11:28 2015 +0200
user-accounts: Fix enterprise user login permitting
Commit 3e6b741a introduced check for NULL on um_realm_object_get_common.
Unfortunatelly one check is wrong and breaks the login permitting.
The patch fixes the wrong check.
https://bugzilla.gnome.org/show_bug.cgi?id=752405
panels/user-accounts/um-account-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index 21a22aa..003a430 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -795,7 +795,7 @@ enterprise_permit_user_login (UmAccountDialog *self)
GVariant *options;
common = um_realm_object_get_common (self->selected_realm);
- if (common != NULL) {
+ if (common == NULL) {
g_debug ("Failed to register account: failed to get d-bus interface");
show_error_dialog (self, _("Failed to register account"), NULL);
finish_action (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]