summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/spree/admin/users/_subscription_tab.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/spree/admin/users/_subscription_tab.html.erb b/app/views/spree/admin/users/_subscription_tab.html.erb
index cfb9205..4bde827 100644
--- a/app/views/spree/admin/users/_subscription_tab.html.erb
+++ b/app/views/spree/admin/users/_subscription_tab.html.erb
@@ -1,4 +1,4 @@
-<% if can? :admin, @user.subscriptions %>
+<% if can? :admin, SolidusSubscriptions::Subscription.new(user: @user) %>
<li<%== ' class="active"' if current == :subscriptions %>>
<%= link_to t("spree.admin.user.subscriptions"), spree.admin_user_subscriptions_path(@user) %>
</li>