From 70d22f7c4f7d503ae15eed63369fb7865a3ac6ea Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 14 Jan 2022 16:09:38 +0800 Subject: [PATCH] fix: create team overflow tip --- app/controllers/organizations/teams_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/organizations/teams_controller.rb b/app/controllers/organizations/teams_controller.rb index 285f9960b..09f5bc3f0 100644 --- a/app/controllers/organizations/teams_controller.rb +++ b/app/controllers/organizations/teams_controller.rb @@ -44,7 +44,7 @@ class Organizations::TeamsController < Organizations::BaseController def create ActiveRecord::Base.transaction do if @organization.teams.count >= 50 - return render_forbidden("组织的团队数量已超过限制!") + return tip_exception("组织的团队数量已超过限制!") else Organizations::CreateTeamForm.new(team_params).validate! @team = Organizations::Teams::CreateService.call(current_user, @organization, team_params)