diff --git a/app/controllers/team_shared_objects_controller.rb b/app/controllers/team_shared_objects_controller.rb index 41e712d0c..85c3691e7 100644 --- a/app/controllers/team_shared_objects_controller.rb +++ b/app/controllers/team_shared_objects_controller.rb @@ -57,7 +57,7 @@ class TeamSharedObjectsController < ApplicationController end def shareable_teams - teams = current_user.teams.order(:name) - [@model.team] + teams = Team.order(:name).all - [@model.team] render json: teams, each_serializer: ShareableTeamSerializer, model: @model end diff --git a/app/javascript/vue/shared/share_modal.vue b/app/javascript/vue/shared/share_modal.vue index 39e2d3a3d..ee9c9873b 100644 --- a/app/javascript/vue/shared/share_modal.vue +++ b/app/javascript/vue/shared/share_modal.vue @@ -37,14 +37,14 @@