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:
authorTimothy Andrew <mail@timothyandrew.net>2016-08-16 12:54:55 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-08-16 12:59:10 +0300
commitf898a47e146391d869eeade989143513fb5c4ed0 (patch)
tree1293c899c334e1ddb64a23526f8c8eb4e94b1616 /app/controllers/autocomplete_controller.rb
parent2193ae222b3337f03c18dd7d27408a1b138c2f92 (diff)
Fix a missed `before_action` for `AutocompleteController`.
- `#find_users` depends on a project being loaded. - Missed adding this in 2193ae222b3337f03c18dd7d27408a1b138c2f92
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-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