Commit 55c74619 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Fix typo in method name

parent 456796f3
......@@ -8,7 +8,7 @@ module EE
def leave
super
if membershipable == current_user.provisioned_by_group && current_user.authorized_by_provisioned_by_group?
if current_user.authorized_by_provisioned_by_group? && membershipable == current_user.provisioned_by_group
sign_out current_user
end
end
......
......@@ -33,7 +33,7 @@ class Groups::SsoController < Groups::ApplicationController
GroupSaml::Identity::DestroyService.new(linked_identity).execute
if current_user.authorized_by_provisining_group? && unauthenticated_group == current_user.provisioned_by_group
if current_user.authorized_by_provisioning_group? && unauthenticated_group == current_user.provisioned_by_group
sign_out current_user
else
redirect_to profile_account_path
......
......@@ -298,7 +298,7 @@ module EE
managing_group.present?
end
def authorized_by_provisining_group?
def authorized_by_provisioning_group?
::Feature.enabled?(:block_password_auth_for_saml_users, type: :ops) && user_detail.provisioned_by_group?
end
......@@ -318,7 +318,7 @@ module EE
override :allow_password_authentication_for_web?
def allow_password_authentication_for_web?(*)
return false if group_managed_account?
return false if authorized_by_provisining_group?
return false if authorized_by_provisioning_group?
super
end
......@@ -326,7 +326,7 @@ module EE
override :allow_password_authentication_for_git?
def allow_password_authentication_for_git?(*)
return false if group_managed_account?
return false if authorized_by_provisining_group?
return false if authorized_by_provisioning_group?
super
end
......
......@@ -52,7 +52,7 @@ module Gitlab
def find_by_email
user = super
return user if user&.authorized_by_provisining_group? && user&.provisioned_by_group_id == saml_provider.group_id
return user if user&.authorized_by_provisioning_group? && user&.provisioned_by_group_id == saml_provider.group_id
false
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment