summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 114523286..a498d09f1 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -264,7 +264,7 @@ sub LookupNamedQuery {
FROM namedquery_group_map
WHERE namedquery_id = ?',
undef, $id);
- if (!grep {$_ == $group} values(%{$user->groups()})) {
+ if (!grep { $_->id == $group } @{ $user->groups }) {
ThrowUserError("missing_query", {'queryname' => $name,
'sharer_id' => $sharer_id});
}