Sha256: 5d1a58ab760a57221883673470b6091d45e30bbcb4c68894329a43efc35bf070

Contents?: true

Size: 292 Bytes

Versions: 37

Compression:

Stored size: 292 Bytes

Contents

module Bizside
  module Acl
    module ControllerHelper
      include Bizside::Acl::AvailableHelper

      def authorize_user!
        unless available_for(params[:controller], params[:action], params)
          redirect_to root_path
          return
        end
      end

    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
bizside-2.3.9 lib/bizside/acl/controller_helper.rb
bizside-2.3.8 lib/bizside/acl/controller_helper.rb
bizside-3.0.0 lib/bizside/acl/controller_helper.rb
bizside-2.3.7 lib/bizside/acl/controller_helper.rb
bizside-2.3.6 lib/bizside/acl/controller_helper.rb
bizside-2.3.5 lib/bizside/acl/controller_helper.rb
bizside-2.3.4 lib/bizside/acl/controller_helper.rb
bizside-2.3.3 lib/bizside/acl/controller_helper.rb
bizside-2.3.2 lib/bizside/acl/controller_helper.rb
bizside-2.3.1 lib/bizside/acl/controller_helper.rb
bizside-2.3.0 lib/bizside/acl/controller_helper.rb
bizside-2.2.3 lib/bizside/acl/controller_helper.rb
bizside-2.2.2 lib/bizside/acl/controller_helper.rb
bizside-2.2.1 lib/bizside/acl/controller_helper.rb
bizside-2.2.0 lib/bizside/acl/controller_helper.rb
bizside-2.1.12 lib/bizside/acl/controller_helper.rb
bizside-2.1.11 lib/bizside/acl/controller_helper.rb
bizside-2.1.10 lib/bizside/acl/controller_helper.rb
bizside-2.1.9 lib/bizside/acl/controller_helper.rb
bizside-2.1.8 lib/bizside/acl/controller_helper.rb