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) ⇒ Array<Symbol>

Returns the roles granted to the principal.

Parameters:

  • principal (Principal)

    of the currently logged in user.

Returns:

  • (Array<Symbol>)

    the roles granted to the principal.



15
16
17
# File 'lib/shamu/security/roles_service.rb', line 15

def roles_for( principal )
  []
end