BUGFIX: if SSO is enabled invite system is disabled
This commit is contained in:
parent
78f8fbb7ea
commit
25860622b7
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue