BigW Consortium Gitlab

Commit e2c2bd69 by Robert Speicher

Simplify invited_group_members filter-by-level

parent e4485d7b
...@@ -244,11 +244,11 @@ class ProjectTeam ...@@ -244,11 +244,11 @@ class ProjectTeam
next if numeric_level > link.group_access next if numeric_level > link.group_access
# Make sure we include everyone _above_ the requested level as well # Make sure we include everyone _above_ the requested level as well
invited_group_members =
if numeric_level == link.group_access if numeric_level == link.group_access
invited_group_members = invited_group_members invited_group_members.where("access_level >= ?", link.group_access)
.where("access_level >= ?", link.group_access)
else else
invited_group_members = invited_group_members.public_send(level) invited_group_members.public_send(level)
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment