mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: disposable invite tokens
This commit is contained in:
@@ -210,6 +210,10 @@ class Guardian
|
||||
user.admin?
|
||||
end
|
||||
|
||||
def can_create_disposable_invite?(user)
|
||||
user.admin?
|
||||
end
|
||||
|
||||
def can_see_private_messages?(user_id)
|
||||
is_admin? || (authenticated? && @user.id == user_id)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user