Sha256: e7cfccaaff961beb777d252bbd307712d426776d03f9237a5a6e05ae5dfc0281

Contents?: true

Size: 570 Bytes

Versions: 17

Compression:

Stored size: 570 Bytes

Contents

module Cms
  class PortletController < Cms::ApplicationController

    skip_before_filter :redirect_to_cms_site
    skip_before_filter :login_required

    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

17 entries across 17 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/controllers/cms/portlet_controller.rb
browsercms-3.5.6 app/controllers/cms/portlet_controller.rb
browsercms-3.5.5 app/controllers/cms/portlet_controller.rb
browsercms-3.5.4 app/controllers/cms/portlet_controller.rb
browsercms-3.5.3 app/controllers/cms/portlet_controller.rb
browsercms-3.5.2 app/controllers/cms/portlet_controller.rb
browsercms-3.5.1 app/controllers/cms/portlet_controller.rb
browsercms-3.5.0 app/controllers/cms/portlet_controller.rb
browsercms-3.5.0.rc3 app/controllers/cms/portlet_controller.rb
browsercms-3.5.0.rc2 app/controllers/cms/portlet_controller.rb
browsercms-3.5.0.rc1 app/controllers/cms/portlet_controller.rb
browsercms-3.4.2 app/controllers/cms/portlet_controller.rb
browsercms-3.4.2.rc1 app/controllers/cms/portlet_controller.rb
browsercms-3.4.1 app/controllers/cms/portlet_controller.rb
browsercms-3.4.0 app/controllers/cms/portlet_controller.rb
browsercms-3.4.0.rc2 app/controllers/cms/portlet_controller.rb
browsercms-3.4.0.rc1 app/controllers/cms/portlet_controller.rb