From 8acf5b355353cc97a1cd707c9df5b302be9863e6 Mon Sep 17 00:00:00 2001 From: KWierso Date: Sat, 16 Mar 2013 00:01:49 -0700 Subject: [PATCH] Add 'permissions' to allowed keys. SDK 1.14 will add a 'permissions' key to package.json, initially used only for allowing addons to opt-in to running in private browsing windows, with other potential uses in the future. This commit adds support for the key so developers don't get errors when trying to add the key to their addons.(cherry picked from commit 350f400829fea7990acfab865108f8fa97282290) --- apps/jetpack/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/jetpack/models.py b/apps/jetpack/models.py index 0f7f731c..e7d9cf42 100644 --- a/apps/jetpack/models.py +++ b/apps/jetpack/models.py @@ -793,7 +793,7 @@ class PackageRevision(BaseModel): @staticmethod def validate_extra_json(extra_json): allowed_keys = ('contributors', 'homepage', 'icon', 'icon64', 'id', - 'preferences', 'license') + 'preferences', 'license', 'permissions') for key in extra_json.keys(): if key not in allowed_keys: raise KeyNotAllowed(allowed_keys)