summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-08-16 15:24:55 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-08-16 15:29:10 +0530
commitf898a47e146391d869eeade989143513fb5c4ed0 (patch)
tree1293c899c334e1ddb64a23526f8c8eb4e94b1616
parent2193ae222b3337f03c18dd7d27408a1b138c2f92 (diff)
downloadgitlab-ce-f898a47e146391d869eeade989143513fb5c4ed0.tar.gz
Fix a missed `before_action` for `AutocompleteController`.
- `#find_users` depends on a project being loaded. - Missed adding this in 2193ae222b3337f03c18dd7d27408a1b138c2f92
-rw-r--r--app/controllers/autocomplete_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb
index 441030fb545..e1641ba6265 100644
--- a/app/controllers/autocomplete_controller.rb
+++ b/app/controllers/autocomplete_controller.rb
@@ -1,5 +1,6 @@
class AutocompleteController < ApplicationController
skip_before_action :authenticate_user!, only: [:users]
+ before_action :load_project, only: [:users]
before_action :find_users, only: [:users]
def users