katalyst-koi 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb92750823d697ffbb372d003c7bf5e602bae07313f4b562662272112d53f372
4
- data.tar.gz: 67eddc938748bfd2b814e1714a634342a11b18328da150ce32c8490123af3df1
3
+ metadata.gz: 90e5721b8bace02f68122960be426eaf1dca28b0d53519427d946725f514048b
4
+ data.tar.gz: 8f1d20633b556d6142ca2d9db7c4f643c7d8aa6ef55de0f08516475fd992dd1c
5
5
  SHA512:
6
- metadata.gz: 25ab7a95629902201b8e750f063f6a54d206187003fffb950a276f7b30533c81124f4700ba78528b75248dbd4b0982b0ef9328b78d90be31acdd4f131700cdb3
7
- data.tar.gz: 70c3b22497df49c4e48c270694f09bcf2556de3919ce050514e23d33c9d407a83e732e8fec23dc6acfb8e0fbf05a3656a068e23aaa21df5ed21c3b73b0b015fb
6
+ metadata.gz: 64fcc8bd6d9bcf30de3deef6c7c5cce8599d11ec70a6e48caafe0409d29794e04e7025aaa10f9986d48f241862ac9b21fa39ae3dd44a76689e7215fade8213b6
7
+ data.tar.gz: 3af3963bd76e9f74c2fb2a71cc4af2d13ea239319dc68a5e9b61fcc37a1773b65ffcff958a7ae69003ba7909260b83cf307ad908a5729b192dd1c10d0c74af67
@@ -4,10 +4,6 @@
4
4
 
5
5
  return unless Object.const_defined?("Flipper")
6
6
 
7
- Flipper.register(:admins) do |actor, _context|
8
- actor.respond_to?("role") && ((actor.role.eql? "Admin") || (actor.role.eql? "Super"))
9
- end
10
-
11
- Flipper.register(:super_admins) do |actor, _context|
12
- actor.respond_to?("role") && (actor.role.eql? "Super")
7
+ Flipper.register(:admins) do |flipper, _context|
8
+ flipper.actor.is_a?(Admin::User) && !flipper.actor.archived?
13
9
  end
data/lib/koi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Koi
4
- VERSION = "4.0.0"
4
+ VERSION = "4.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-koi
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails