Fix PolicyKit action for deleting fingerprints

We can only delete fingerprints if we could enroll them
in the first place.
This commit is contained in:
Bastien Nocera
2008-10-29 17:35:06 +00:00
committed by Daniel Drake
parent 81933406d0
commit c738aa334d

View File

@ -714,7 +714,7 @@ static void fprint_device_delete_enrolled_fingers(FprintDevice *rdev,
return; 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); dbus_g_method_return_error (context, error);
return; return;
} }