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:
authorPhil Hughes <me@iamphill.com>2016-10-26 11:27:40 +0300
committerPhil Hughes <me@iamphill.com>2016-11-01 11:45:46 +0300
commite765299fa91013ede9312c3eb0437ba627610a97 (patch)
tree1fa9486a0778922f6e42961a28c196872b3af847 /app/helpers/events_helper.rb
parentc74ae0e49ecab1a4463df6c1e514ec3d9aad4e69 (diff)
Correctly passes feature key into feature_available method
Diffstat (limited to 'app/helpers/events_helper.rb')
-rw-r--r--app/helpers/events_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index 0fc50f40a6e..00e64076408 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -39,10 +39,10 @@ module EventsHelper
end
end
- def event_filter_visible(key)
+ def event_filter_visible(feature_key)
return true unless @project
- @project.feature_available?(:repository, current_user)
+ @project.feature_available?(feature_key, current_user)
end
def event_preposition(event)