Sha256: 0f9707a610213b3ec50c2295542845a08e0b055d38d7f41412e5402ca09626a7

Contents?: true

Size: 299 Bytes

Versions: 35

Compression:

Stored size: 299 Bytes

Contents

require "delegate"

module Ddr::Auth
  class EffectiveRoles < SimpleDelegator

    def self.call(obj, agents)
      new(obj).call(agents)
    end

    def call(agents)
      ResourceRoles.call(self)
        .merge(InheritedRoles.call(self))
        .agent(agents)
        .result
    end

  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.7 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.6 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.5 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.4 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.3 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.2 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.1 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.rc6 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.rc5 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.rc4 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.rc3 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.rc2 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.rc1 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.22 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.21 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.20 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.18 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.17 lib/ddr/auth/effective_roles.rb