Commit e9dee299 authored by Collen Kriel's avatar Collen Kriel

Add feature check to Lock button

parent b83786b6
......@@ -11,7 +11,8 @@
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
.btn-group{ role: "group" }<
= lock_file_link(html_options: { class: 'btn btn-sm path-lock' })
- if @project.feature_available?(:file_locks)
= lock_file_link(html_options: { class: 'btn btn-sm path-lock' })
= edit_blob_button
= ide_edit_button
......
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