diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-26 09:27:40 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-11-01 08:45:46 +0000 |
commit | e765299fa91013ede9312c3eb0437ba627610a97 (patch) | |
tree | 1fa9486a0778922f6e42961a28c196872b3af847 /app/helpers | |
parent | c74ae0e49ecab1a4463df6c1e514ec3d9aad4e69 (diff) | |
download | gitlab-ce-e765299fa91013ede9312c3eb0437ba627610a97.tar.gz |
Correctly passes feature key into feature_available methodproject-activity-tabs-hide
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/events_helper.rb | 4 |
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) |