Class: Shamu::Security::RolesService::EmptyRolesService

Inherits:
Object
  • Object
show all
Includes:
Shamu::Security::RolesService
Defined in:
lib/shamu/security/roles_service.rb

Overview

Default Shamu::Security::RolesService always returns an empty set.

Instance Method Summary collapse

Instance Method Details

#roles_for(principal) ⇒ Array<Symbol>

caching.

Parameters:

  • principal (Principal)

    of the currently logged in user.

  • reload (Boolean)

    to reload the roles from storage and bypass any

Returns:

  • (Array<Symbol>)

    the roles granted to the principal.



26
27
28
# File 'lib/shamu/security/roles_service.rb', line 26

def roles_for( principal )
  []
end