Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2018-04-23 18:20:33 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2018-04-23 18:24:56 +0300
commitdd09a19ad6f9daf36cd26c749be2b90d4f968b92 (patch)
treebfe01dbcd2548ad90d12ae5511dcbe4344711c97 /lib/gitlab/auth/saml/user.rb
parent795cd7f95206db318c58939698f63eee5abedb34 (diff)
Auth::User classes refactor adds should_save?
Diffstat (limited to 'lib/gitlab/auth/saml/user.rb')
-rw-r--r--lib/gitlab/auth/saml/user.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/gitlab/auth/saml/user.rb b/lib/gitlab/auth/saml/user.rb
index 557e6aa21a4..cb01cd8004c 100644
--- a/lib/gitlab/auth/saml/user.rb
+++ b/lib/gitlab/auth/saml/user.rb
@@ -29,17 +29,13 @@ module Gitlab
user
end
- def changed?
+ override :should_save?
+ def should_save?
return true unless gl_user
gl_user.changed? || gl_user.identities.any?(&:changed?)
end
- override :omniauth_should_save?
- def omniauth_should_save?
- changed? && super
- end
-
protected
def saml_config