Simplify LFS helper
This commit is contained in:
parent
9d1ccd2ad3
commit
551787ac5c
1 changed files with 0 additions and 4 deletions
|
@ -39,10 +39,6 @@ module LfsHelper
|
|||
def lfs_upload_access?
|
||||
return false unless project.lfs_enabled?
|
||||
|
||||
privileged_user_can_push_code?
|
||||
end
|
||||
|
||||
def privileged_user_can_push_code?
|
||||
has_capability?(:push_code) && user && user.can?(:push_code, project)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue