Fix rubocop issues

This commit is contained in:
Luis Ramos
2020-08-31 20:00:08 +01:00
parent de061b4c54
commit 208be3ede6
4 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
@import "../variables";
span.unavailable, span.available {
span.unavailable,
span.available {
font-weight: bold;
i {
font-size: 150%;
}

View File

@@ -134,7 +134,7 @@ dl {
}
.text-normal {
font-size: 1.0rem;
font-size: 1rem;
font-weight: 300;
}

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module Api
class TermsAndConditionsController < Api::EnterpriseAttachmentController
private

View File

@@ -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|