Sha256: 46de9aecf9fe06ae284a781176dad96a8e59fc4fbfcaf8ba8423d4139131d88a

Contents?: true

Size: 386 Bytes

Versions: 107

Compression:

Stored size: 386 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

    can [ :open_permission ], Wco
    # can [ :open_permission ], WcoEmail

  end
end

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
wco_models-3.1.0.53 app/models/ability.rb
wco_models-3.1.0.52 app/models/ability.rb
wco_models-3.1.0.51 app/models/ability.rb
wco_models-3.1.0.50 app/models/ability.rb
wco_models-3.1.0.49 app/models/ability.rb
wco_models-3.1.0.48 app/models/ability.rb
wco_models-3.1.0.47 app/models/ability.rb