diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-23 15:12:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-23 15:12:28 +0000 |
commit | 98014c0c43c1b1114d17c5851cd6313a9011d3ab (patch) | |
tree | 405bb6fb3e3e1bbdad0be2e4de43e353db8aeebd /app/services | |
parent | 3f274363e9dc9a1be75edfcd3dd5adb64b1e8c29 (diff) | |
download | gitlab-ce-98014c0c43c1b1114d17c5851cd6313a9011d3ab.tar.gz |
Add latest changes from gitlab-org/gitlab@14-8-stable-ee
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/quick_actions/interpret_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb index 906c4b98f56..1baa4ddf0eb 100644 --- a/app/services/quick_actions/interpret_service.rb +++ b/app/services/quick_actions/interpret_service.rb @@ -79,7 +79,7 @@ module QuickActions # using a user-style reference, which is not in scope here. args = params.split(/\s|,/).select(&:present?).uniq - ['and'] usernames = (args - ['me']).map { _1.delete_prefix('@') } - found = User.by_username(usernames).to_a.select { can?(:read_user_profile, _1) } + found = User.by_username(usernames).to_a.select { can?(:read_user, _1) } found_names = found.map(&:username).to_set missing = args.reject { |arg| arg == 'me' || found_names.include?(arg.delete_prefix('@')) }.map { "'#{_1}'" } |