Minor syntax fix

This commit is contained in:
Jan Provaznik 2018-06-29 13:27:58 +02:00 committed by Jarka Kadlecová
parent 6f8ececc02
commit ef0df760fc
1 changed files with 1 additions and 2 deletions

View File

@ -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