From 1870276cd207a84df23eb3999964aefa2a719ee6 Mon Sep 17 00:00:00 2001 From: wvengen Date: Wed, 2 Oct 2013 23:43:09 +0200 Subject: [PATCH] show user name with use_nick is false --- app/views/foodcoop/users/_users.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/foodcoop/users/_users.html.haml b/app/views/foodcoop/users/_users.html.haml index cbac9dc8..2a464c67 100644 --- a/app/views/foodcoop/users/_users.html.haml +++ b/app/views/foodcoop/users/_users.html.haml @@ -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