diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-02-17 14:49:38 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-02-22 14:50:25 +0300 |
commit | 15a6633999c81387245cabf129dd2fbb04650c95 (patch) | |
tree | fad334998fa38ebc1c5540b0cef2136816f38e72 /app/controllers/autocomplete_controller.rb | |
parent | 829830ae9df9e777716e03fa393a328d3ff882b0 (diff) |
Revert authors ability to assign anyone
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-rw-r--r-- | app/controllers/autocomplete_controller.rb | 2 |
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 |