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