refactor: remove redundant validation

This commit is contained in:
Shivam Mishra
2025-09-10 10:16:23 +05:30
parent 0f2b278dcd
commit 2634050f1a
@@ -35,9 +35,6 @@ module Enterprise::DeviseOverrides::OmniauthCallbacksController
private
def handle_saml_auth
# Check if enterprise edition and SAML feature are available
return redirect_to login_page_url(error: 'saml-not-available') unless ChatwootApp.enterprise?
account_id = extract_saml_account_id
return redirect_to login_page_url(error: 'saml-not-enabled') unless saml_enabled_for_account?(account_id)