Commit ec100caf authored by Aakriti Gupta's avatar Aakriti Gupta

Remove redundant condition from helper

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