Skip to content

Commit

Permalink
Fix denormalized role creation. Refs #8393
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bambas committed Nov 8, 2010
1 parent 0cccc48 commit 040afe1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ella/newman/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ def sync_denormalized(self):
#for p in self.group.permissions.all():
for p in self.group.permissions.all().iterator():
code = '%s.%s' % (p.content_type.app_label, p.codename)
# Category list is identical for every permission code in CUR's group
if not cats:
cats = compute_applicable_categories_objects(self.user, code)
# Category list is NOT NECESSARILY identical for every permission code in CUR's group
cats = compute_applicable_categories_objects(self.user, code)
#print 'Denormalizing %s for %d categories' % (code, len(cats))
# create denormalized roles
for c in cats:
Expand Down

0 comments on commit 040afe1

Please sign in to comment.