openpgp-keychain/openpgp-keychain — pull request #471 by sreeram-boyapati (2014-03-23 09:13:27+00:00)
Title: Added can_encrypt check

Tests:
Case 1: Removed/Added Encrypt permission to MasterKey and other keys too.

Case 2: Removed/Added Encrypt Permission to Other Keys except Master Key

Case 3: Removed/Added Encrypt Permission to Master Key except Other Key

Its working fine.

Should we take take expiry date and revocation status into account?