diff --git a/lib/guardian.rb b/lib/guardian.rb index 1350c971b3e..8a6648baadd 100644 --- a/lib/guardian.rb +++ b/lib/guardian.rb @@ -182,6 +182,7 @@ class Guardian def can_invite_to_forum? authenticated? && + !SiteSetting.enable_sso && ( (!SiteSetting.must_approve_users? && @user.has_trust_level?(:regular)) || is_staff?