diff --git a/app/controllers/discourse_assign/assign_controller.rb b/app/controllers/discourse_assign/assign_controller.rb index 9dadec5..2fa80ba 100644 --- a/app/controllers/discourse_assign/assign_controller.rb +++ b/app/controllers/discourse_assign/assign_controller.rb @@ -23,7 +23,7 @@ module DiscourseAssign .order('X.last_assigned DESC') .limit(6) - render json: { + render json: { assign_allowed_on_groups: Group.assign_allowed_groups.pluck(:name), suggestions: ActiveModel::ArraySerializer.new(users, scope: guardian, each_serializer: BasicUserSerializer) } diff --git a/plugin.rb b/plugin.rb index 0624616..735888b 100644 --- a/plugin.rb +++ b/plugin.rb @@ -23,7 +23,6 @@ Discourse::Application.routes.append do get "topics/messages-assigned/:username" => "list#messages_assigned", as: "topics_messages_assigned", constraints: { username: /[\w.\-]+?/ } end - # TODO: Remove this once 2.4.0.beta3 is released. # HACK: Checking if the file exists, this means we can assume the migration happenned above_min_version = File.exist?(