add: fix some data task

This commit is contained in:
2021-08-26 17:51:46 +08:00
parent 8c11759b6c
commit 5637001b16
2 changed files with 46 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ class Organizations::Teams::UpdateService < ApplicationService
end
def units_params
%w(admin owner).include?(team.authorize) ? %w(code issues pulls releases) : params[:unit_types]
%w(code issues pulls wiki releases)
end
def update_team(update_params)