Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-02-17 14:49:38 +0300
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-02-22 14:50:25 +0300
commit15a6633999c81387245cabf129dd2fbb04650c95 (patch)
treefad334998fa38ebc1c5540b0cef2136816f38e72 /app/controllers/autocomplete_controller.rb
parent829830ae9df9e777716e03fa393a328d3ff882b0 (diff)
Revert authors ability to assign anyone
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-rw-r--r--app/controllers/autocomplete_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb
index 5d81a996fba..1e4fc612a3c 100644
--- a/app/controllers/autocomplete_controller.rb
+++ b/app/controllers/autocomplete_controller.rb
@@ -15,7 +15,7 @@ class AutocompleteController < ApplicationController
@users = [*@users, current_user]
end
- unless params[:author_id] == "false"
+ if params[:author_id] && params[:author_id] != "false"
@users = [User.find(params[:author_id]), *@users]
end