Skip to content
Browse files

don't show email of the user that created the suggestion, unless the …

…user viewing it has permissions to apply the suggestion (i.e. he's an editor)
  • Loading branch information...
1 parent 89f04d5 commit 4ab447e70b2a8e9a5b02d053d414bb7161c8beaa @ofri committed Sep 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 suggestions/views.py
View
2 suggestions/views.py
@@ -93,7 +93,7 @@ def prepare_pending(self, result, can_apply=False):
'suggestions_reject', kwargs={'pk': x.pk}),
'by': unicode(x.suggested_by),
'by_url': x.suggested_by.get_profile().get_absolute_url(),
- 'by_email': x.suggested_by.email,
+ 'by_email': can_apply and x.suggested_by.email,
}
for x in result[key]]

0 comments on commit 4ab447e

Please sign in to comment.
Something went wrong with that request. Please try again.