mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
FIX: only staff can access 'resend all invites' feature
This commit is contained in:
@ -246,6 +246,10 @@ class Guardian
|
||||
user.staff?
|
||||
end
|
||||
|
||||
def can_resend_all_invites?(user)
|
||||
user.staff?
|
||||
end
|
||||
|
||||
def can_see_private_messages?(user_id)
|
||||
is_admin? || (authenticated? && @user.id == user_id)
|
||||
end
|
||||
|
Reference in New Issue
Block a user