Sha256: 87b69d6ff99433d841a9ab2b788bd2b0c8e8193c71da77c5ed7a6d1b443cc19b
Contents?: true
Size: 727 Bytes
Versions: 29
Compression:
Stored size: 727 Bytes
Contents
module Eco module API class MicroCases # It preserves the usergroups of `person` and appends those defined in `policy_group_ids` of the `entry` # @param entry [PersonEntry] the input entry with the data we should set on 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 append_usergroups(entry, person, options) unless options.dig(:exclude, :account) if person.account person.account.policy_group_ids |= entry.policy_group_ids micro.refresh_abilities(person, options) end end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems