From 95beec7d930830679a81df7cd8536f08357db47b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 14 Feb 2024 10:46:31 +0100 Subject: [PATCH] return old fix --- idhub/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/idhub/models.py b/idhub/models.py index 8f074bb..aa2ac7c 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -600,7 +600,7 @@ class VerificableCredential(models.Model): if not self.data: return "" - if self.eidas1_did or self.is_didweb: + if self.eidas1_did: return self.data return self.user.decrypt_data(self.data, password) @@ -646,7 +646,7 @@ class VerificableCredential(models.Model): self.render(domain), self.issuer_did.get_key_material(issuer_pass) ) - if self.eidas1_did or self.is_didweb: + if self.eidas1_did: self.data = data else: self.data = self.user.encrypt_data(data, password) @@ -660,7 +660,7 @@ class VerificableCredential(models.Model): cred_path = 'credentials' sid = self.id - if self.eidas1_did or self.is_didweb: + if self.eidas1_did: cred_path = 'public/credentials' sid = self.hash