Commit 0012de8c authored by Jacob Vosmaer's avatar Jacob Vosmaer

Rename lfs_enabled helper method

parent 7dff0946
class Projects::LfsApiController < Projects::GitHttpClientController
include LfsHelper
before_action :lfs_enabled!
before_action :require_lfs_enabled!
before_action :lfs_check_access!, except: [:deprecated]
def batch
......
class Projects::LfsStorageController < Projects::GitHttpClientController
include LfsHelper
before_action :lfs_enabled!
before_action :require_lfs_enabled!
before_action :lfs_check_access!
def download
......
module LfsHelper
def lfs_enabled!
def require_lfs_enabled!
return if Gitlab.config.lfs.enabled
render(
......
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