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.155 app/models/ability.rb
wco_models-3.1.0.154 app/models/ability.rb
wco_models-3.1.0.153 app/models/ability.rb
wco_models-3.1.0.152 app/models/ability.rb
wco_models-3.1.0.151 app/models/ability.rb
wco_models-3.1.0.150 app/models/ability.rb
wco_models-3.1.0.149 app/models/ability.rb
wco_models-3.1.0.148 app/models/ability.rb
wco_models-3.1.0.147 app/models/ability.rb
wco_models-3.1.0.146 app/models/ability.rb
wco_models-3.1.0.145 app/models/ability.rb
wco_models-3.1.0.144 app/models/ability.rb
wco_models-3.1.0.143 app/models/ability.rb
wco_models-3.1.0.142 app/models/ability.rb
wco_models-3.1.0.141 app/models/ability.rb
wco_models-3.1.0.140 app/models/ability.rb
wco_models-3.1.0.139 app/models/ability.rb
wco_models-3.1.0.138 app/models/ability.rb
wco_models-3.1.0.137 app/models/ability.rb
wco_models-3.1.0.136 app/models/ability.rb