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