Commit d4e9122b authored by Douwe Maan's avatar Douwe Maan

Merge branch 'ee-add-feature-check-for-file-lock' into 'master'

Add feature check to Lock button

Closes #5952

See merge request gitlab-org/gitlab-ee!5656
parents 40c0a659 a5bb0b34
module EE
module LockHelper
def lock_file_link(project = @project, path = @path, html_options: {})
return unless project.feature_available?(:file_locks)
return unless current_user
return if path.blank?
......
---
title: Hide Lock button if File Locking feature is not available in license
merge_request: 5656
author:
type: fixed
\ No newline at end of file
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