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

Rename lfs_enabled helper method

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