mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
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:
committed by
Daniel Drake
parent
81933406d0
commit
c738aa334d
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user