don't need memberships except for json requests
This commit is contained in:
parent
a4cae7e527
commit
99ddafc6ad
1 changed files with 3 additions and 1 deletions
|
@ -256,7 +256,9 @@ class Group(controllers.Controller):
|
|||
for group in results:
|
||||
if canViewGroup(person, group):
|
||||
groups.append(group)
|
||||
memberships[group.name] = group.approved_roles
|
||||
if self.jsonRequest():
|
||||
# Added an efficiency
|
||||
memberships[group.name] = group.approved_roles
|
||||
if not len(groups):
|
||||
turbogears.flash(_("No Groups found matching '%s'") % search)
|
||||
return dict(groups=groups, search=search, memberships=memberships)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue