BUGFIX: if SSO is enabled invite system is disabled

This commit is contained in:
Sam 2014-04-22 09:17:37 +10:00
parent 78f8fbb7ea
commit 25860622b7
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ class Guardian
def can_invite_to_forum? def can_invite_to_forum?
authenticated? && authenticated? &&
!SiteSetting.enable_sso &&
( (
(!SiteSetting.must_approve_users? && @user.has_trust_level?(:regular)) || (!SiteSetting.must_approve_users? && @user.has_trust_level?(:regular)) ||
is_staff? is_staff?