diff options
author | Ondrej Holy <oholy@redhat.com> | 2015-07-14 15:11:28 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2015-07-15 17:34:49 +0200 |
commit | 7ce6ce68073488601053099b25b1fc29e86d7380 (patch) | |
tree | 98602c7ed076ccaeef1e1eeae142e31dcbce2887 | |
parent | f2f4626f645f531637ec6ff790f0411811455e42 (diff) | |
download | gnome-control-center-7ce6ce68073488601053099b25b1fc29e86d7380.tar.gz |
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
-rw-r--r-- | 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 21a22aaed..003a4307b 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); |