app/controllers/cms/base_controller.rb in browsercms-artirix-4.0.1.1 vs app/controllers/cms/base_controller.rb in browsercms-artirix-4.0.2

- old
+ new

@@ -11,9 +11,10 @@ # Disables the default security level for actions, meaning they will be available for guests to access. # Users will not need to login prior to accessing these methods. # # @param [Array<Symbol>] methods List of methods to disable security for. def self.allow_guests_to(methods) + return true unless Cms.allow_guests? skip_before_action :redirect_to_cms_site, only: methods skip_before_action :authenticate_cms_user!, only: methods skip_before_action :cms_access_required, only: methods end \ No newline at end of file