Sha256: e792a9051361d84ca7e706bbfca720aaeb70397ea327182e32f31e39beb4ff5b

Contents?: true

Size: 322 Bytes

Versions: 27

Compression:

Stored size: 322 Bytes

Contents

module Alchemy::Custom::Model
  module ElFinder
    class Ability
      include CanCan::Ability

      def initialize(user)
        if user.present? && user.is_admin?
          can :usage, Alchemy::Custom::Model::ElFinder
          can :ui_usage, Alchemy::Custom::Model::ElFinder
        end
      end
    end
  end
end


Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-3.1.5 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-3.1.4 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-3.1.3 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-3.1.2 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-3.1.1 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-3.1.0 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.2.2 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-3.0.0 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.2.1 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.2.0 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.1.2 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.1.1 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.1.0 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.0.3 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.0.2 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.0.1 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-2.0.0 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-0.1.9 lib/alchemy/custom/model/el_finder/ability.rb
alchemy-custom-model-0.1.7 lib/alchemy/custom/model/el_finder/ability.rb