color: Do not allow the user to set default a profile they cannot access
This commit is contained in:
parent
c49b22027c
commit
240a13f110
1 changed files with 10 additions and 0 deletions
|
@ -1508,6 +1508,16 @@ gcm_prefs_device_set_model_by_iter (CcColorPanel *prefs, CdDevice *device, GtkTr
|
|||
goto out;
|
||||
}
|
||||
|
||||
#if CD_CHECK_VERSION(0,1,13)
|
||||
/* ignore profiles from other user accounts */
|
||||
if (!cd_profile_has_access (profile))
|
||||
{
|
||||
g_warning ("%s is not usable by this user",
|
||||
cd_profile_get_filename (profile));
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* autogenerated printer defaults */
|
||||
if (cd_device_get_kind (device) == CD_DEVICE_KIND_PRINTER &&
|
||||
cd_profile_get_filename (profile) == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue