Sha256: e29e763b61b04e1f5baab7a747180eaa0c74aa79f23dd1b69c9fb920c246a8c3

Contents?: true

Size: 531 Bytes

Versions: 11

Compression:

Stored size: 531 Bytes

Contents

module Cms
  class PortletController < Cms::ApplicationController

    skip_before_filter :redirect_to_cms_site

    def execute_handler
      @portlet = Portlet.find(params[:id])
      @portlet.controller = self

      method = params[:handler]
      if @portlet.class.superclass.method_defined?(method) or @portlet.class.private_method_defined?(method) or @portlet.class.protected_method_defined?(method)
        raise Cms::Errors::AccessDenied
      else
        redirect_to @portlet.send(method)
      end

    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/controllers/cms/portlet_controller.rb
browsercms-artirix-4.0.3.3 app/controllers/cms/portlet_controller.rb
browsercms-artirix-4.0.3.2 app/controllers/cms/portlet_controller.rb
browsercms-artirix-4.0.3.1 app/controllers/cms/portlet_controller.rb
browsercms-artirix-4.0.3 app/controllers/cms/portlet_controller.rb
browsercms-artirix-4.0.2 app/controllers/cms/portlet_controller.rb
browsercms-artirix-4.0.1.1 app/controllers/cms/portlet_controller.rb
browsercms-artirix-4.0.0.rc1.art4 app/controllers/cms/portlet_controller.rb
browsercms-4.0.0.rc1 app/controllers/cms/portlet_controller.rb
browsercms-4.0.0.beta app/controllers/cms/portlet_controller.rb
browsercms-4.0.0.alpha app/controllers/cms/portlet_controller.rb