mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: remove all invites
https://meta.discourse.org/t/remove-all-invitations-button-for-the-admin-panel/65207
This commit is contained in:
parent
c6b83f4714
commit
e7b9b1312e
9 changed files with 58 additions and 3 deletions
|
@ -269,6 +269,10 @@ class Guardian
|
|||
user.staff?
|
||||
end
|
||||
|
||||
def can_rescind_all_invites?(user)
|
||||
user.staff?
|
||||
end
|
||||
|
||||
def can_see_private_messages?(user_id)
|
||||
is_admin? || (authenticated? && @user.id == user_id)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue