Commit 592d626d authored by Riyad Preukschas's avatar Riyad Preukschas

Fix #2576

parent 0dd8a26a
......@@ -49,7 +49,7 @@ module Gitlab
protected
def can_edit?(last_commit)
current_last_commit = @project.last_commit_for(ref, file_path).sha
current_last_commit = @project.repository.last_commit_for(ref, file_path).sha
last_commit == current_last_commit
end
end
......
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