show user name with use_nick is false

This commit is contained in:
wvengen 2013-10-02 23:43:09 +02:00
parent 1946cd1ab3
commit 1870276cd2

View file

@ -16,7 +16,7 @@
%tr
- if FoodsoftConfig[:use_nick]
%td= user.nick
%td= user.name if @current_user.role_admin? || user.settings.profile["name_is_public"]
%td= user.name if @current_user.role_admin? || user.settings.profile["name_is_public"] || !FoodsoftConfig[:use_nick]
%td= user.email if @current_user.role_admin? || user.settings.profile["email_is_public"]
%td= user.phone if @current_user.role_admin? || user.settings.profile["phone_is_public"]
%td= user.ordergroup_name