]> git.openstreetmap.org Git - osqa.git/commitdiff
the email in the revent activity should be visible only to superusers, staff and...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 14 Oct 2011 19:17:44 +0000 (19:17 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 14 Oct 2011 19:17:44 +0000 (19:17 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1189 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/actions/user.py

index 3366a6cf360fc212ff4401e541f499ef332d6219..c8e075cfd5ad74e28bae2025754744c41435f67c 100644 (file)
@@ -46,7 +46,7 @@ class EmailValidationAction(ActionProxy):
         return _("%(user)s %(have_has)s validated the e-mail %(email)s") % {
         'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)),
         'have_has': self.viewer_or_user_verb(viewer, self.user, _('have'), _('has')),
-        'email' : self.user.email
+        'email' : self.user.email if viewer.is_superuser or viewer.is_staff or viewer == self.user else ""
         }
 
 class EditProfileAction(ActionProxy):