Class: Ddr::Auth::EffectivePermissions

Inherits:
Object
  • Object
show all
Defined in:
lib/ddr/auth/effective_permissions.rb

Class Method Summary collapse

Class Method Details

.call(obj, agents) ⇒ Array<Symbol>

Parameters:

  • obj (Object)

    an object that receives :roles and returns a RoleSet

  • agents (String, Array<String>)

    agent(s) to match roles

Returns:

  • (Array<Symbol>)


7
8
9
# File 'lib/ddr/auth/effective_permissions.rb', line 7

def self.call(obj, agents)
  EffectiveRoles.call(obj, agents).permissions
end