UX: show staged users' email addresses to staff without requiring a button press

This commit is contained in:
Neil Lalonde
2017-11-24 16:11:34 -05:00
parent 510a2a1e0f
commit 39d7745dc5
5 changed files with 15 additions and 4 deletions

View File

@ -36,7 +36,8 @@ class AdminUserListSerializer < BasicUserSerializer
def include_email?
# staff members can always see their email
(scope.is_staff? && object.id == scope.user.id) || scope.can_see_emails?
(scope.is_staff? && object.id == scope.user.id) || scope.can_see_emails? ||
(scope.is_staff? && object.staged?)
end
alias_method :include_associated_accounts?, :include_email?