Commit aa0bc52a authored by Toon Claes's avatar Toon Claes

`can?` already includes the `feature_available?` check

`can?` already includes the `feature_available?` check, so no need to
check this again.
parent eaffe8cd
...@@ -3,7 +3,6 @@ module CompareHelper ...@@ -3,7 +3,6 @@ module CompareHelper
from.present? && from.present? &&
to.present? && to.present? &&
from != to && from != to &&
project.feature_available?(:merge_requests, current_user) &&
can?(current_user, :create_merge_request, project) && can?(current_user, :create_merge_request, project) &&
project.repository.branch_names.include?(from) && project.repository.branch_names.include?(from) &&
project.repository.branch_names.include?(to) project.repository.branch_names.include?(to)
......
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