Commit ec100caf authored by Aakriti Gupta's avatar Aakriti Gupta

Remove redundant condition from helper

parent 89cc37a4
......@@ -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