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 ...@@ -8,7 +8,7 @@ module EE
def leave def leave
super 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 sign_out current_user
end end
end end
......
...@@ -33,7 +33,7 @@ class Groups::SsoController < Groups::ApplicationController ...@@ -33,7 +33,7 @@ class Groups::SsoController < Groups::ApplicationController
GroupSaml::Identity::DestroyService.new(linked_identity).execute 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 sign_out current_user
else else
redirect_to profile_account_path redirect_to profile_account_path
......
...@@ -298,7 +298,7 @@ module EE ...@@ -298,7 +298,7 @@ module EE
managing_group.present? managing_group.present?
end 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? ::Feature.enabled?(:block_password_auth_for_saml_users, type: :ops) && user_detail.provisioned_by_group?
end end
...@@ -318,7 +318,7 @@ module EE ...@@ -318,7 +318,7 @@ module EE
override :allow_password_authentication_for_web? override :allow_password_authentication_for_web?
def allow_password_authentication_for_web?(*) def allow_password_authentication_for_web?(*)
return false if group_managed_account? return false if group_managed_account?
return false if authorized_by_provisining_group? return false if authorized_by_provisioning_group?
super super
end end
...@@ -326,7 +326,7 @@ module EE ...@@ -326,7 +326,7 @@ module EE
override :allow_password_authentication_for_git? override :allow_password_authentication_for_git?
def allow_password_authentication_for_git?(*) def allow_password_authentication_for_git?(*)
return false if group_managed_account? return false if group_managed_account?
return false if authorized_by_provisining_group? return false if authorized_by_provisioning_group?
super super
end end
......
...@@ -52,7 +52,7 @@ module Gitlab ...@@ -52,7 +52,7 @@ module Gitlab
def find_by_email def find_by_email
user = super 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 false
end 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