diff options
author | Sean McGivern <sean@gitlab.com> | 2017-11-13 11:24:01 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-11-13 13:19:54 +0000 |
commit | cf6ff601656b4de368cc9fe17543e8d611368a46 (patch) | |
tree | 7a8c3727353cf9fc5725c1d117d026312e3a8068 /app/finders | |
parent | 95661d7b6220d6b0608f2582b3a89b5b743c1b0e (diff) | |
download | gitlab-ce-cf6ff601656b4de368cc9fe17543e8d611368a46.tar.gz |
Fix users autocomplete in a subgroup
We should include users who have access from parent groups, not just direct
members of the current group.
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/autocomplete_users_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/autocomplete_users_finder.rb b/app/finders/autocomplete_users_finder.rb index b8f52e31926..c3f5358b577 100644 --- a/app/finders/autocomplete_users_finder.rb +++ b/app/finders/autocomplete_users_finder.rb @@ -45,7 +45,7 @@ class AutocompleteUsersFinder def find_users return users_from_project if project - return group.users if group + return group.users_with_parents if group return User.all if current_user User.none |