malcontent-control: Treat lack of GPermission as lack of permissions

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 <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-01-31 11:53:39 +00:00
parent 32c7435b8d
commit 7fd8705f33
1 changed files with 1 additions and 1 deletions

View File

@ -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);