diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-16 11:06:31 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-16 11:12:22 +0200 |
commit | a387ff7ba85dc75608ae5347aa405ea30b4e8c8c (patch) | |
tree | 7121d96944f5a45073e80cc239123c03b4c1ccbb /app | |
parent | e941365f3be88cebd57e9b08ba8702c1b688cb94 (diff) | |
download | gitlab-ce-a387ff7ba85dc75608ae5347aa405ea30b4e8c8c.tar.gz |
Fix specs after renaming authentication_capabilities
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/lfs_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/lfs_helper.rb b/app/helpers/lfs_helper.rb index 0d6b72ff746..018ca7d7bba 100644 --- a/app/helpers/lfs_helper.rb +++ b/app/helpers/lfs_helper.rb @@ -29,17 +29,17 @@ module LfsHelper end def user_can_download_code? - has_capability?(:download_code) && user && user.can?(:download_code, project) + has_authentication_ability?(:download_code) && can?(user, :download_code, project) end def build_can_download_code? - has_capability?(:build_download_code) && user && user.can?(:build_download_code, project) + has_authentication_ability?(:build_download_code) && can?(user, :build_download_code, project) end def lfs_upload_access? return false unless project.lfs_enabled? - has_capability?(:push_code) && user && user.can?(:push_code, project) + has_authentication_ability?(:push_code) && can?(user, :push_code, project) end def render_lfs_forbidden |