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,6 +256,8 @@ class Group(controllers.Controller):
|
||||||
for group in results:
|
for group in results:
|
||||||
if canViewGroup(person, group):
|
if canViewGroup(person, group):
|
||||||
groups.append(group)
|
groups.append(group)
|
||||||
|
if self.jsonRequest():
|
||||||
|
# Added an efficiency
|
||||||
memberships[group.name] = group.approved_roles
|
memberships[group.name] = group.approved_roles
|
||||||
if not len(groups):
|
if not len(groups):
|
||||||
turbogears.flash(_("No Groups found matching '%s'") % search)
|
turbogears.flash(_("No Groups found matching '%s'") % search)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue