lib/avo/fields/has_base_field.rb in avo-3.14.2 vs lib/avo/fields/has_base_field.rb in avo-3.14.3

- old
+ new

@@ -92,18 +92,18 @@ super(view) end def authorized? + return true unless Avo.configuration.authorization_enabled? + method = :"view_#{id}?" service = field_resource.authorization if service.has_method? method service.authorize_action(method, raise_exception: false) - elsif !service.is_a?(Avo::Services::AuthorizationService) - !Avo.configuration.explicit_authorization else - true + !Avo.configuration.explicit_authorization end end def default_name use_resource&.name || super