Copy predicate when re-encrypting. Fixes #143.

This commit is contained in:
Joshua Kroll
2016-05-06 23:28:21 -07:00
parent f0590e3df8
commit ef19255714

View File

@@ -580,6 +580,7 @@ func ReEncrypt(jsonIn []byte) ([]byte, error) {
Names: s.Owners,
LeftNames: s.LeftOwners,
RightNames: s.RightOwners,
Predicate: s.Predicate,
}
resp, err := crypt.Encrypt(data, s.Labels, access)