From 67395b5e479240e7a178e7237eaa6af5c6afa454 Mon Sep 17 00:00:00 2001 From: Ivanq Date: Tue, 13 Jun 2017 11:36:38 +0300 Subject: [PATCH] Allow fileRules for root content.json --- src/Content/ContentManager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index f97eedd5..bb291b27 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -352,6 +352,12 @@ class ContentManager(object): if not file_info: return False # File not found inner_path = file_info["content_inner_path"] + + if inner_path == "content.json": # Root content.json + rules = {} + rules["signers"] = self.getValidSigners(inner_path, content) + return rules + dirs = inner_path.split("/") # Parent dirs of content.json inner_path_parts = [dirs.pop()] # Filename relative to content.json inner_path_parts.insert(0, dirs.pop()) # Dont check in self dir