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:
parent
78f8fbb7ea
commit
25860622b7
1 changed files with 1 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue