Module: Shamu::Security::RolesService

Included in:
EmptyRolesService
Defined in:
lib/shamu/security/roles_service.rb

Overview

Used to determine the roles that the current Principal should be given on a Shamu::Services::Service.

Defined Under Namespace

Classes: EmptyRolesService

Instance Method Summary collapse

Instance Method Details

#roles_for(principal, reload: false) ⇒ Array<Symbol>

caching.

Parameters:

  • principal (Principal)

    of the currently logged in user.

  • reload (Boolean) (defaults to: false)

    to reload the roles from storage and bypass any

Returns:

  • (Array<Symbol>)

    the roles granted to the principal.



17
18
19
# File 'lib/shamu/security/roles_service.rb', line 17

def roles_for( principal, reload: false )
  []
end