Commit ef0df760 authored by Jan Provaznik's avatar Jan Provaznik Committed by Jarka Kadlecová

Minor syntax fix

parent 6f8ececc
......@@ -87,8 +87,7 @@ class Group < Namespace
def public_or_visible_to_user(user)
where('id IN (?) OR namespaces.visibility_level IN (?)',
user.authorized_groups.select(:id),
Gitlab::VisibilityLevel.levels_for_user(user)
)
Gitlab::VisibilityLevel.levels_for_user(user))
end
def select_for_project_authorization
......
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