Sha256: ada05dc85e5b3e4ef33a7a976168dca083941494eda274ae62be68382b8c6b61

Contents?: true

Size: 333 Bytes

Versions: 117

Compression:

Stored size: 333 Bytes

Contents

module Ddr::Auth
  class EffectivePermissions

    # @param obj [Object] an object that receives :roles and returns a RoleSet
    # @param agents [String, Array<String>] agent(s) to match roles
    # @return [Array<Symbol>]    
    def self.call(obj, agents)
      EffectiveRoles.call(obj, agents).permissions
    end
    
  end
end

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
ddr-models-2.1.1 lib/ddr/auth/effective_permissions.rb
ddr-models-2.1.0 lib/ddr/auth/effective_permissions.rb
ddr-models-2.1.0.rc2 lib/ddr/auth/effective_permissions.rb
ddr-models-2.1.0.rc1 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.1 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.rc6 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.rc5 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.rc4 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.rc3 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.rc2 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.rc1 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.pre.5 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.pre.4 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.pre.3 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.pre.2 lib/ddr/auth/effective_permissions.rb
ddr-models-2.0.0.pre.1 lib/ddr/auth/effective_permissions.rb