From b0bfed453995222e1a9a88633e04d8d02e024f4b Mon Sep 17 00:00:00 2001 From: jordan Date: Fri, 14 Oct 2011 19:17:44 +0000 Subject: [PATCH] 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 --- forum/actions/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.45.1