Merge pull request #2603 from techAPJ/patch-1

FEATURE: allow staff to send multiple invites to same email
This commit is contained in:
Robin Ward
2014-07-29 14:58:39 -04:00
5 changed files with 37 additions and 1 deletions

View File

@@ -214,6 +214,10 @@ class Guardian
user.admin?
end
def can_send_multiple_invites?(user)
user.staff?
end
def can_see_private_messages?(user_id)
is_admin? || (authenticated? && @user.id == user_id)
end