Skip to content
Snippets Groups Projects
Commit 633ac497 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'make-issues-base-service-match-ee' into 'master'

Make Issues::BaseService match EE

Closes gitlab-ee#6561

See merge request gitlab-org/gitlab-ce!20405
parents f2bc0723 3ac7203d
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -32,8 +32,9 @@ module Issues
def filter_assignee(issuable)
return if params[:assignee_ids].blank?
 
# The number of assignees is limited by one for GitLab CE
params[:assignee_ids] = params[:assignee_ids][0, 1]
unless issuable.allows_multiple_assignees?
params[:assignee_ids] = params[:assignee_ids].take(1)
end
 
assignee_ids = params[:assignee_ids].select { |assignee_id| assignee_can_read?(issuable, assignee_id) }
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment