[gnome-control-center] printers: Check for "all-edit" policy in "Unlock" button



commit 8d77636ac6f834ecb61687306de4aefe3678d7af
Author: Marek Kasik <mkasik redhat com>
Date:   Wed Mar 23 14:05:31 2011 +0100

    printers: Check for "all-edit" policy in "Unlock" button
    
    The policy "all-edit" groups almost all policies from cups-pk-helper,
    hence we don't need to authenticate more than once (#645533).

 panels/printers/cc-printers-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index 21d053a..7a17c76 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -2224,7 +2224,7 @@ cc_printers_panel_init (CcPrintersPanel *self)
 
   /* Add unlock button */
   priv->permission = (GPermission *)polkit_permission_new_sync (
-    "org.opensuse.cupspkhelper.mechanism.printeraddremove", NULL, NULL, NULL);
+    "org.opensuse.cupspkhelper.mechanism.all-edit", NULL, NULL, NULL);
   if (priv->permission != NULL)
     {
       widget = cc_lock_button_new (priv->permission);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]