Commit 3f205500 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'ag-fix-helper' into 'master'

Remove redundant condition from group helper

See merge request gitlab-org/gitlab!26806
parents 320abfd7 ec100caf
...@@ -94,11 +94,7 @@ module EE ...@@ -94,11 +94,7 @@ module EE
end end
def show_group_activity_analytics? def show_group_activity_analytics?
return false unless @group.feature_available?(:group_activity_analytics) can?(current_user, :read_group_activity_analytics, @group)
return false unless can?(current_user, :read_group_activity_analytics, @group)
true
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment