From: jordan Date: Fri, 14 Oct 2011 19:17:44 +0000 (+0000) Subject: the email in the revent activity should be visible only to superusers, staff and... X-Git-Tag: live~128 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/b0bfed453995222e1a9a88633e04d8d02e024f4b the email in the revent activity should be visible only to superusers, staff and to the validated user git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1189 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/actions/user.py b/forum/actions/user.py index 3366a6c..c8e075c 100644 --- a/forum/actions/user.py +++ b/forum/actions/user.py @@ -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):