From 5b640463469e9c0a80e65a107851cdf67cdb7f65 Mon Sep 17 00:00:00 2001 From: Gianluca Rizzo Date: Thu, 22 Mar 2018 21:50:47 +0100 Subject: [PATCH] Disable backend footer profile edit link if role cannot edit users --- .../admin/shared/_navigation_footer.html.erb | 13 ++++++-- .../admin/shared/navigation_footer_spec.rb | 31 +++++++++++++++++-- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/backend/app/views/spree/admin/shared/_navigation_footer.html.erb b/backend/app/views/spree/admin/shared/_navigation_footer.html.erb index dbb6639a84b..8d0fb5c35c6 100644 --- a/backend/app/views/spree/admin/shared/_navigation_footer.html.erb +++ b/backend/app/views/spree/admin/shared/_navigation_footer.html.erb @@ -6,9 +6,16 @@ <% if try_spree_current_user %>