Merge pull request #869 from MRoci/master

Root content.json "signers"  field as a list
This commit is contained in:
ZeroNet 2017-06-15 15:24:00 +02:00 committed by GitHub
commit 85b2a81568

View file

@ -633,7 +633,7 @@ class ContentManager(object):
valid_signers = []
if inner_path == "content.json": # Root content.json
if "content.json" in self.contents and "signers" in self.contents["content.json"]:
valid_signers += self.contents["content.json"]["signers"].keys()
valid_signers += self.contents["content.json"]["signers"][:]
else:
rules = self.getRules(inner_path, content)
if rules and "signers" in rules: