class Alchemy::Custom::Model::ElFinder::Ability

Public Class Methods

new(user) click to toggle source
# File lib/alchemy/custom/model/el_finder/ability.rb, line 6
def initialize(user)
  if user.present? && user.is_admin?
    can :usage, Alchemy::Custom::Model::ElFinder
    can :ui_usage, Alchemy::Custom::Model::ElFinder
  end
end