Use shorthand as in TreeController#edit
This commit is contained in:
parent
3304262c3d
commit
f120e5a89a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module Gitlab
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def can_edit?(path, last_commit)
|
def can_edit?(path, last_commit)
|
||||||
current_last_commit = @project.commits(ref, path, 1).first.sha
|
current_last_commit = @project.last_commit_for(ref, path).sha
|
||||||
last_commit == current_last_commit
|
last_commit == current_last_commit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue