Skip to content

Commit

Permalink
validatesigner.py: define an "allow_all" policy key.
Browse files Browse the repository at this point in the history
  • Loading branch information
elric1 committed Dec 27, 2023
1 parent 5c01287 commit 465f45b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tezos_signer/validatesigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def check_policy(self, sigreq):
'is against policy'))
allowed = True

if 'allow_all' in self.policy and self.policy['allow_all']:
allowed = True

if not allowed:
raise(Exception('Request is against policy'))

Expand Down

0 comments on commit 465f45b

Please sign in to comment.