malcontent-control: Use new error domain and codes

The error domain was renamed in libmalcontent, so we should use the new
domain rather than the compatibility defines.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-01-30 09:35:53 +00:00
parent e220fd9919
commit f3aea0247a
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ update_app_filter (MctUserControls *self)
if (act_user_get_uid (self->user) != getuid () && if (act_user_get_uid (self->user) != getuid () &&
self->permission != NULL && self->permission != NULL &&
!g_permission_get_allowed (self->permission) && !g_permission_get_allowed (self->permission) &&
g_error_matches (error, MCT_APP_FILTER_ERROR, MCT_APP_FILTER_ERROR_PERMISSION_DENIED)) g_error_matches (error, MCT_MANAGER_ERROR, MCT_MANAGER_ERROR_PERMISSION_DENIED))
{ {
g_clear_error (&error); g_clear_error (&error);
g_debug ("Not enough permissions to retrieve app filter for user '%s'", g_debug ("Not enough permissions to retrieve app filter for user '%s'",