Simplify LFS helper

This commit is contained in:
Kamil Trzcinski 2016-09-15 14:06:10 +02:00
parent 9d1ccd2ad3
commit 551787ac5c

View file

@ -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