From 7fd8705f33b3e438be287db6528afa2b6a87bd52 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 31 Jan 2020 11:53:39 +0000 Subject: [PATCH] malcontent-control: Treat lack of GPermission as lack of permissions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rather than assuming that having no GPermission means we do have permissions, which was a little confusing and didn’t match other points in the code. Signed-off-by: Philip Withnall --- malcontent-control/user-controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malcontent-control/user-controls.c b/malcontent-control/user-controls.c index 1f40cb0..a4bb8f4 100644 --- a/malcontent-control/user-controls.c +++ b/malcontent-control/user-controls.c @@ -408,7 +408,7 @@ setup_parental_control_settings (MctUserControls *self) if (self->permission != NULL) is_authorized = g_permission_get_allowed (G_PERMISSION (self->permission)); else - is_authorized = TRUE; + is_authorized = FALSE; gtk_widget_set_sensitive (GTK_WIDGET (self), is_authorized);