diff --git a/cryptor/cryptor.go b/cryptor/cryptor.go index 86db588..f598069 100644 --- a/cryptor/cryptor.go +++ b/cryptor/cryptor.go @@ -270,7 +270,7 @@ func (encrypted *EncryptedData) wrapKey(records *passvault.Records, clearKey []b return } - if len(access.Names) > 0 { + if len(access.Names) > 0 && access.Minimum > 0 { // Generate a random AES key for each user and RSA/ECIES encrypt it encrypted.KeySetRSA = make(map[string]SingleWrappedKey)