Skip to content

Commit

Permalink
Commented cond in ImputValidator class.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Oct 3, 2023
1 parent 22da96a commit 14df586
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ocean_provider/validation/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,14 @@ def validate(self):
self.message = message
return False

code = AddressCredential(self.asset).validate_access(
{"type": "address", "value": self.consumer_address}
)

if code != ConsumableCodes.OK:
self.resource += ".credentials"
self.message = "restricted_access_for_algo"
return False
# code = AddressCredential(self.asset).validate_access(
# {"type": "address", "value": self.consumer_address}
# )
#
# if code != ConsumableCodes.OK:
# self.resource += ".credentials"
# self.message = "restricted_access_for_algo"
# return False

if self.service.type not in ["access", "compute"]:
self.resource += ".serviceId"
Expand Down

0 comments on commit 14df586

Please sign in to comment.