fix: owner team can change nickname

This commit is contained in:
yystopf 2021-09-06 16:42:48 +08:00
parent cb1d77ee6d
commit 30e4ab98db
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Organizations::Teams::UpdateService < ApplicationService
private
def update_params
if team.authorize == "owner"
update_params = params.slice(:description)
update_params = params.slice(:description, :nickname)
else
update_params = params.slice(:name, :nickname, :description, :authorize, :includes_all_project, :can_create_org_project)
end