This commit is contained in:
James Lopez 2018-02-09 08:59:03 +01:00
parent 5fc3ff9893
commit 4c8f8f4fe9
No known key found for this signature in database
GPG key ID: 756BF8E9D7C0CF39

View file

@ -25,7 +25,7 @@ module BlobHelper
edit_button_tag(edit_text, common_classes)
# This condition applies to anonymous or users who can edit directly
elsif !current_user || (current_user && can_modify_blob?(blob, project, ref))
edit_link_tag(edit_text, ide_edit_path(project, ref, path, options), common_classes)
edit_link_tag(edit_text, edit_blob_path(project, ref, path, options), common_classes)
elsif current_user && can?(current_user, :fork_project, project)
edit_blob_fork(common_classes, edit_blob_path(project, ref, path, options), project, edit_in_new_fork_notice)
end