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