diff --git a/app/assets/stylesheets/admin/pages/enterprise_form.scss b/app/assets/stylesheets/admin/pages/enterprise_form.scss index 94e1e67a90..55572be07c 100644 --- a/app/assets/stylesheets/admin/pages/enterprise_form.scss +++ b/app/assets/stylesheets/admin/pages/enterprise_form.scss @@ -1,7 +1,9 @@ @import "../variables"; -span.unavailable, span.available { +span.unavailable, +span.available { font-weight: bold; + i { font-size: 150%; } diff --git a/app/assets/stylesheets/admin/shared/typography.scss b/app/assets/stylesheets/admin/shared/typography.scss index 79ecba0510..cacd0e9f74 100644 --- a/app/assets/stylesheets/admin/shared/typography.scss +++ b/app/assets/stylesheets/admin/shared/typography.scss @@ -134,7 +134,7 @@ dl { } .text-normal { - font-size: 1.0rem; + font-size: 1rem; font-weight: 300; } diff --git a/app/controllers/api/terms_and_conditions_controller.rb b/app/controllers/api/terms_and_conditions_controller.rb index cae88a789e..d49721c04a 100644 --- a/app/controllers/api/terms_and_conditions_controller.rb +++ b/app/controllers/api/terms_and_conditions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class TermsAndConditionsController < Api::EnterpriseAttachmentController private diff --git a/app/models/spree/ability_decorator.rb b/app/models/spree/ability_decorator.rb index 57d48c7b16..325d93839a 100644 --- a/app/models/spree/ability_decorator.rb +++ b/app/models/spree/ability_decorator.rb @@ -97,7 +97,9 @@ class AbilityDecorator end can [:admin, :index, :create], Enterprise - can [:read, :edit, :update, :remove_logo, :remove_promo_image, :remove_terms_and_conditions, :bulk_update, :resend_confirmation], Enterprise do |enterprise| + can [:read, :edit, :update, + :remove_logo, :remove_promo_image, :remove_terms_and_conditions, + :bulk_update, :resend_confirmation], Enterprise do |enterprise| OpenFoodNetwork::Permissions.new(user).editable_enterprises.include? enterprise end can [:welcome, :register], Enterprise do |enterprise|