From 25860622b723f53073709a73868cb20c04619562 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 22 Apr 2014 09:17:37 +1000 Subject: [PATCH] BUGFIX: if SSO is enabled invite system is disabled --- lib/guardian.rb | 1 + 1 file changed, 1 insertion(+) 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?