Commit 551787ac authored by Kamil Trzcinski's avatar Kamil Trzcinski

Simplify LFS helper

parent 9d1ccd2a
......@@ -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
......
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