<% if can? :admin, @user.subscriptions %>
  <li<%== ' class="active"' if current == :subscriptions %>>
    <%= link_to t("spree.admin.user.subscriptions"), spree.admin_user_subscriptions_path(@user) %>
  </li>
<% end %>

<% 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>
<% end %>

Update permissions check on user subscription tab
Update permissions check on user subscription tab

Previously, it would check your permissions on an ActiveRecord
association - which would in most non-admin cases be false, even
if they had permissions to manage subscriptions. This changes the
check to return a new instance of the users subscriptions, so
people with manage subscriptions permissions will still be able
to view this tab, while also allowing for you to conditionally
allow/deny permissions based on what users subscriptions they
are attempting to view.
