Browse Source

fix: create team overflow tip

tags/v4.0.0^2
yystopf 4 years ago
parent
commit
70d22f7c4f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/organizations/teams_controller.rb

+ 1
- 1
app/controllers/organizations/teams_controller.rb View File

@@ -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)


Loading…
Cancel
Save