This commit is contained in:
Riyad Preukschas 2013-01-16 17:31:11 +01:00
parent 0dd8a26a3a
commit 592d626dad

View file

@ -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