Sha256: b3e3232d00d5bf6b3c84673a869283393ec3612f29bf252eb02de00b6b355b7c
Contents?: true
Size: 640 Bytes
Versions: 29
Compression:
Stored size: 640 Bytes
Contents
module Eco module API class MicroCases # It sets the correct set of abilities based on the usergroups of `person`. # @param person [Ecoportal::API::V1::Person] the person we want to update, carrying the changes to be done. # @param options [Hash] the options. def refresh_abilities(person, options) unless options.dig(:exclude, :account) if person.account unless options.dig(:exclude, :abilities) && !person.new? person.account.permissions_custom = session.new_preset(person) end end end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems