Sha256: 78555e5dc57db9bb84b772b5e1df72fe5766791cc5e1e7220938d10cf4a61879

Contents?: true

Size: 310 Bytes

Versions: 15

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

# require 'cancancan'

## v0.0.1 :: 2023-12-26
class Ability
  include ::CanCan::Ability

  def initialize(user)

    if user

      if [ 'piousbox@gmail.com', 'victor@piousbox.com', 'victor@wasya.co' ].include? user.email
        can :manage, :all
      end

    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wco_models-3.1.0.46 app/models/ability.rb
wco_models-3.1.0.45 app/models/ability.rb
wco_models-3.1.0.44 app/models/ability.rb
wco_models-3.1.0.43 app/models/ability.rb
wco_models-3.1.0.42 app/models/ability.rb
wco_models-3.1.0.41 app/models/ability.rb
wco_models-3.1.0.40 app/models/ability.rb
wco_models-3.1.0.39 app/models/ability.rb
wco_models-3.1.0.38 app/models/ability.rb
wco_models-3.1.0.37 app/models/ability.rb
wco_models-3.1.0.36 app/models/ability.rb
wco_models-3.1.0.35 app/models/ability.rb
wco_models-3.1.0.34 app/models/ability.rb
wco_models-3.1.0.33 app/models/ability.rb
wco_models-3.1.0.32 app/models/ability.rb