debian-mirror-gitlab/debian/patches/0670-allow-doorkeepr-4_3.patch

21 lines
746 B
Diff
Raw Normal View History

2018-11-12 16:28:27 +05:30
Bug, https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22966
--- a/config/initializers/doorkeeper.rb
+++ b/config/initializers/doorkeeper.rb
2018-12-14 19:14:46 +05:30
@@ -114,15 +114,6 @@
2018-11-12 16:28:27 +05:30
base_controller '::Gitlab::BaseDoorkeeperController'
end
-# Monkey patch to avoid creating new applications if the scope of the
-# app created does not match the complete list of scopes of the configured app.
-# It also prevents the OAuth authorize application window to appear every time.
-
-# Remove after we upgrade the doorkeeper gem from version 4.3.2
-if Doorkeeper.gem_version > Gem::Version.new('4.3.2')
- raise "Doorkeeper was upgraded, please remove the monkey patch in #{__FILE__}"
-end
-
module Doorkeeper
module AccessTokenMixin
module ClassMethods