fix: team unit default change

This commit is contained in:
yystopf 2021-08-26 14:28:11 +08:00
parent 65e5420246
commit 8c11759b6c
1 changed files with 1 additions and 1 deletions

View File

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