Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fd298bd authored by Jim Miller's avatar Jim Miller
Browse files

Fix permission check in hasEnrolledFingerprints()

Fixes bug 27350799

Change-Id: Icd00985b5ad9a8159733e9180c79f646b275b60d
parent 17fc60e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -505,7 +505,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
    }

    public boolean hasEnrolledFingerprints(int userId) {
        if (userId != Binder.getCallingUid()) {
        if (userId != UserHandle.getCallingUserId()) {
            checkPermission(INTERACT_ACROSS_USERS);
        }
        return mFingerprintUtils.getFingerprintsForUser(mContext, userId).size() > 0;