Browse files

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 350f400)
  • Loading branch information...
1 parent b910b27 commit 8acf5b355353cc97a1cd707c9df5b302be9863e6 @KWierso KWierso committed with KWierso Mar 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/jetpack/models.py
View
2 apps/jetpack/models.py
@@ -793,7 +793,7 @@ def set_version(self, version_name, current=True):
@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)

0 comments on commit 8acf5b3

Please sign in to comment.