2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00
Arpit Jalan 2017-06-29 20:02:07 +05:30
parent c6b83f4714
commit e7b9b1312e
9 changed files with 58 additions and 3 deletions

View file

@ -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