Rename lfs_enabled helper method
This commit is contained in:
parent
7dff0946a7
commit
0012de8c8a
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class Projects::LfsStorageController < Projects::GitHttpClientController
|
||||
include LfsHelper
|
||||
|
||||
before_action :lfs_enabled!
|
||||
before_action :require_lfs_enabled!
|
||||
before_action :lfs_check_access!
|
||||
|
||||
def download
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module LfsHelper
|
||||
def lfs_enabled!
|
||||
def require_lfs_enabled!
|
||||
return if Gitlab.config.lfs.enabled
|
||||
|
||||
render(
|
||||
|
|
Loading…
Reference in a new issue