rev247, Fix content validation error caused by ContentManager refactor, Refactor unittests make use of testdata and format with PEP8
This commit is contained in:
parent
1f53212d62
commit
f63b711972
13 changed files with 508 additions and 488 deletions
|
@ -165,7 +165,7 @@ class ContentManager(object):
|
|||
user_urn = "%s/%s" % (content["cert_auth_type"], content["cert_user_id"]) # web/nofish@zeroid.bit
|
||||
|
||||
rules = copy.copy(user_contents["permissions"].get(content["cert_user_id"], {})) # Default rules by username
|
||||
if not rules:
|
||||
if rules == False:
|
||||
return False # User banned
|
||||
if "signers" in rules:
|
||||
rules["signers"] = rules["signers"][:] # Make copy of the signers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue