diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 04:02:23 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 18:31:57 +0300 |
commit | 8a4d68c53e9c58ad7f8dce1494f7976292b2f929 (patch) | |
tree | 773814f7079c626cafabc229f929cafbe4d4b2e7 /lib/gitlab/saml | |
parent | 7ea641b6d0882fc782a7eb493daf8b66d076924b (diff) |
Enable Style/ConditionalAssignment
Diffstat (limited to 'lib/gitlab/saml')
-rw-r--r-- | lib/gitlab/saml/user.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/saml/user.rb b/lib/gitlab/saml/user.rb index f253dc7477e..abde05d9b68 100644 --- a/lib/gitlab/saml/user.rb +++ b/lib/gitlab/saml/user.rb @@ -28,10 +28,10 @@ module Gitlab if external_users_enabled? && @user # Check if there is overlap between the user's groups and the external groups # setting then set user as external or internal. - if (auth_hash.groups & Gitlab::Saml::Config.external_groups).empty? - @user.external = false + @user.external = if (auth_hash.groups & Gitlab::Saml::Config.external_groups).empty? + false else - @user.external = true + true end end |