app/commands/decidim/assemblies/admin/update_assembly_admin.rb in decidim-assemblies-0.21.0 vs app/commands/decidim/assemblies/admin/update_assembly_admin.rb in decidim-assemblies-0.22.0
- old
+ new
@@ -3,11 +3,11 @@
module Decidim
module Assemblies
module Admin
# A command with all the business logic when updated a participatory
# process admin in the system.
- class UpdateAssemblyAdmin < Rectify::Command
+ class UpdateAssemblyAdmin < NotifyRoleAssignedToAssembly
# Public: Initializes the command.
#
# form - A form object with the params.
# user_role - The AssemblyUSerRole to update
def initialize(form, user_role)
@@ -43,9 +43,10 @@
user_role,
form.current_user,
{ role: form.role },
log_info
)
+ send_notification user_role.user
end
end
end
end
end