Fix #2576
This commit is contained in:
parent
0dd8a26a3a
commit
592d626dad
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue