Sha256: 7ce205f579278da60f456f29c06e3b02b585e2172d0e1a6cf6dc9d65546d6399
Contents?: true
Size: 723 Bytes
Versions: 14
Compression:
Stored size: 723 Bytes
Contents
module Shamu module Security # Used to determine the roles that the current {Principal} should be given # on a {Services::Service}. module RolesService # @!visibility private def self.create( scorpion, * ) scorpion.new EmptyRolesService end # @param [Principal] principal of the currently logged in user. # @return [Array<Symbol>] the roles granted to the principal. def roles_for( principal ) [] end # Default {RolesService} always returns an empty set. class EmptyRolesService include RolesService # (see RolesService#roles_for) def roles_for( principal ) [] end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems