Skip to content

Commit

Permalink
Honor user settings for secondary in zen
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Apr 27, 2015
1 parent aec9b75 commit fd8e587
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion weblate/trans/views/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,12 @@ def get_zen_unitdata(translation, request):
unitdata = [
{
'unit': unit,
'secondary' : (unit.get_secondary_units(request.user) if request.user.is_authenticated() else None),
'secondary': (
unit.get_secondary_units(request.user)
if request.user.is_authenticated() and
request.user.profile.secondary_in_zen
else None
),
'form': TranslationForm(
translation,
unit,
Expand Down

0 comments on commit fd8e587

Please sign in to comment.