From c738aa334de0d182fbdc02f227dfcad4bed9a43a Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 29 Oct 2008 17:35:06 +0000 Subject: [PATCH] Fix PolicyKit action for deleting fingerprints We can only delete fingerprints if we could enroll them in the first place. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index bc6717a..ccda7b1 100644 --- a/src/device.c +++ b/src/device.c @@ -714,7 +714,7 @@ static void fprint_device_delete_enrolled_fingers(FprintDevice *rdev, return; } - if (_fprint_device_check_polkit_for_action (rdev, context, "net.reactivated.fprint.device.verify", &error) == FALSE) { + if (_fprint_device_check_polkit_for_action (rdev, context, "net.reactivated.fprint.device.enroll", &error) == FALSE) { dbus_g_method_return_error (context, error); return; }