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
end
def show_group_activity_analytics?
return false unless @group.feature_available?(:group_activity_analytics)
return false unless can?(current_user, :read_group_activity_analytics, @group)
true
can?(current_user, :read_group_activity_analytics, @group)
end
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