From e765299fa91013ede9312c3eb0437ba627610a97 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 26 Oct 2016 09:27:40 +0100 Subject: Correctly passes feature key into feature_available method --- app/helpers/events_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/helpers') 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) -- cgit v1.2.1