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
from.present? &&
to.present? &&
from != to &&
project.feature_available?(:merge_requests, current_user) &&
can?(current_user, :create_merge_request, project) &&
project.repository.branch_names.include?(from) &&
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