Fix #2576
This commit is contained in:
parent
0dd8a26a3a
commit
592d626dad
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module Gitlab
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def can_edit?(last_commit)
|
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
|
last_commit == current_last_commit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue