Sha256: 94e17084799788bef1f087cf2b05905967fab7b8df46b3a21ba02b8f3216495d

Contents?: true

Size: 429 Bytes

Versions: 17

Compression:

Stored size: 429 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 [ :show ], Wco::ObfuscatedRedirect
    # can [ :open_permission ], WcoEmail

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wco_models-3.1.0.177 app/models/ability.rb
wco_models-3.1.0.176 app/models/ability.rb
wco_models-3.1.0.175 app/models/ability.rb
wco_models-3.1.0.174 app/models/ability.rb
wco_models-3.1.0.173 app/models/ability.rb
wco_models-3.1.0.172 app/models/ability.rb
wco_models-3.1.0.171 app/models/ability.rb
wco_models-3.1.0.170 app/models/ability.rb
wco_models-3.1.0.169 app/models/ability.rb
wco_models-3.1.0.168 app/models/ability.rb
wco_models-3.1.0.167 app/models/ability.rb
wco_models-3.1.0.166 app/models/ability.rb
wco_models-3.1.0.165 app/models/ability.rb
wco_models-3.1.0.164 app/models/ability.rb
wco_models-3.1.0.163 app/models/ability.rb
wco_models-3.1.0.162 app/models/ability.rb
wco_models-3.1.0.161 app/models/ability.rb