diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-02-13 19:33:13 +0000 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-02-15 01:57:55 +0000 |
commit | c88fe70f90c885b0568cdf68e467d5b26bbb142b (patch) | |
tree | 52de8b41899f6e9071e7afda155960a02c0e1aaa /lib/gitlab/git_access_wiki.rb | |
parent | f7c662c733a2a24c044c1f0bad03cfc63f704258 (diff) | |
download | gitlab-ce-c88fe70f90c885b0568cdf68e467d5b26bbb142b.tar.gz |
Only check LFS integrity for first branch in pushjej/fix-slow-lfs-object-check
Diffstat (limited to 'lib/gitlab/git_access_wiki.rb')
-rw-r--r-- | lib/gitlab/git_access_wiki.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access_wiki.rb b/lib/gitlab/git_access_wiki.rb index 1c9477e84b2..84d6e1490c3 100644 --- a/lib/gitlab/git_access_wiki.rb +++ b/lib/gitlab/git_access_wiki.rb @@ -13,7 +13,7 @@ module Gitlab authentication_abilities.include?(:download_code) && user_access.can_do_action?(:download_wiki_code) end - def check_single_change_access(change) + def check_single_change_access(change, _options = {}) unless user_access.can_do_action?(:create_wiki) raise UnauthorizedError, ERROR_MESSAGES[:write_to_wiki] end |