Permalink
Browse files

Bug 1013321 - Ensure permissions are correct in the SuperSearchUnreda…

…cted model. r=peterbe
  • Loading branch information...
1 parent df77a20 commit 59106985d6859e2c16cfd4a3facbffacac54316e @adngdb adngdb committed Jun 17, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 webapp-django/crashstats/supersearch/models.py
View
3 webapp-django/crashstats/supersearch/models.py
@@ -167,7 +167,8 @@ def __init__(self):
permissions = {}
for field_data in all_fields.values():
for perm in field_data['permissions_needed']:
- permissions[perm] = True
+ if perm:
+ permissions[perm] = True
self.API_REQUIRED_PERMISSIONS = tuple(permissions.keys())

0 comments on commit 5910698

Please sign in to comment.