mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Backend support for group invites
This commit is contained in:
@ -196,8 +196,10 @@ class Guardian
|
||||
)
|
||||
end
|
||||
|
||||
def can_invite_to?(object)
|
||||
can_see?(object) && can_invite_to_forum?
|
||||
def can_invite_to?(object, group_ids=nil)
|
||||
can_see?(object) &&
|
||||
can_invite_to_forum? &&
|
||||
( group_ids.blank? || is_admin? )
|
||||
end
|
||||
|
||||
def can_see_private_messages?(user_id)
|
||||
|
Reference in New Issue
Block a user