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.0.beta.16 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.15 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.14 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.13 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.12 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.11 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.10 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.9 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.8 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.7 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.6 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.4 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.3 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.2 lib/ddr/auth/effective_roles.rb
ddr-models-3.0.0.beta.1 lib/ddr/auth/effective_roles.rb