diff --git a/backend/app/views/spree/admin/product_properties/index.html.erb b/backend/app/views/spree/admin/product_properties/index.html.erb index fdb24c8801a..9e2f54164af 100644 --- a/backend/app/views/spree/admin/product_properties/index.html.erb +++ b/backend/app/views/spree/admin/product_properties/index.html.erb @@ -36,7 +36,7 @@ - <% if can?([:create, :update], Spree::ProductProperty) %> + <% if can?(:create, Spree::ProductProperty) && can?(:update, Spree::ProductProperty) %> <%= render 'spree/admin/shared/edit_resource_links' %> <% end %> @@ -95,7 +95,7 @@ <% end %> - <% if can?([:create, :update], Spree::VariantPropertyRule) %> + <% if can?(:create, Spree::VariantPropertyRule) && can?(:update, Spree::VariantPropertyRule) %> <%= render 'spree/admin/shared/edit_resource_links' %> <% end %> diff --git a/backend/app/views/spree/admin/users/_user_page_actions.html.erb b/backend/app/views/spree/admin/users/_user_page_actions.html.erb index e6fa075b2ac..79d42c3350e 100644 --- a/backend/app/views/spree/admin/users/_user_page_actions.html.erb +++ b/backend/app/views/spree/admin/users/_user_page_actions.html.erb @@ -1,5 +1,5 @@ <% content_for :page_actions do %> - <% if can?([:admin, :create], Spree::Order) %> + <% if can?(:admin, Spree::Order) && can?(:create, Spree::Order) %>