2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

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

View file

@ -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?