Permalink
Browse files

Better ACL validation

  • Loading branch information...
joamag committed Jan 10, 2019
1 parent 1960e54 commit 4d67981e08f5c49d9c43bd59a208492d8711170e
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/quorum/acl.py
@@ -99,6 +99,7 @@ def check_token(token, tokens_m = None):
# of parts to validate the complete chain of values against
# the map of token parts (namespace validation)
for token_p in token_l:
if not isinstance(tokens_m, dict): return False
if "*" in tokens_m and tokens_m["*"] == True: return True
if not token_p in tokens_m: return False
tokens_m = tokens_m[token_p]

0 comments on commit 4d67981

Please sign in to comment.