diff options
author | Vincent Untz <vuntz@novell.com> | 2008-11-21 00:06:22 +0100 |
---|---|---|
committer | Vincent Untz <vuntz@novell.com> | 2008-11-21 00:06:22 +0100 |
commit | e6e79a9b02b9a1f530b76d8016dd45c207461c25 (patch) | |
tree | 3a485a4dced3fda060d26509f9f43fb536350ca0 | |
parent | f7efa993f16e2b5ba72cf9759a65b2ce2ef66f99 (diff) |
Check right actions for class methods.
-rw-r--r-- | src/cups-pk-helper-mechanism.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/cups-pk-helper-mechanism.c b/src/cups-pk-helper-mechanism.c index e96d35e..6197ea8 100644 --- a/src/cups-pk-helper-mechanism.c +++ b/src/cups-pk-helper-mechanism.c @@ -751,7 +751,9 @@ cph_mechanism_class_add_printer (CphMechanism *mechanism, reset_killtimer (mechanism); - if (!_check_polkit_for_action (mechanism, context, "printeraddremove")) + if (!_check_polkit_for_action_v (mechanism, context, + "printeraddremove", "class-edit", + NULL)) return FALSE; ret = cph_cups_class_add_printer (mechanism->priv->cups, @@ -771,7 +773,9 @@ cph_mechanism_class_delete_printer (CphMechanism *mechanism, reset_killtimer (mechanism); - if (!_check_polkit_for_action (mechanism, context, "printeraddremove")) + if (!_check_polkit_for_action_v (mechanism, context, + "printeraddremove", "class-edit", + NULL)) return FALSE; ret = cph_cups_class_delete_printer (mechanism->priv->cups, @@ -790,7 +794,9 @@ cph_mechanism_class_delete (CphMechanism *mechanism, reset_killtimer (mechanism); - if (!_check_polkit_for_action (mechanism, context, "printeraddremove")) + if (!_check_polkit_for_action_v (mechanism, context, + "printeraddremove", "class-edit", + NULL)) return FALSE; ret = cph_cups_class_delete (mechanism->priv->cups, name); |