mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
add: team unit add type wiki
This commit is contained in:
@@ -37,7 +37,7 @@ class Organizations::Teams::CreateService < ApplicationService
|
||||
end
|
||||
|
||||
def authorize
|
||||
params[:authorize].present? ? params[:authorize] : "common"
|
||||
params[:authorize].present? ? params[:authorize] : "read"
|
||||
end
|
||||
|
||||
def includes_all_project
|
||||
@@ -54,7 +54,7 @@ class Organizations::Teams::CreateService < ApplicationService
|
||||
end
|
||||
|
||||
def units_params
|
||||
%w(admin owner).include?(authorize) ? %w(code issues pulls releases) : params[:unit_types]
|
||||
%w(admin owner).include?(authorize) ? %w(code issues pulls wiki releases) : params[:unit_types]
|
||||
end
|
||||
|
||||
def create_units
|
||||
|
||||
Reference in New Issue
Block a user