mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
add: team valid
This commit is contained in:
@@ -28,6 +28,10 @@ class Organizations::Teams::CreateService < ApplicationService
|
||||
params[:name]
|
||||
end
|
||||
|
||||
def nickname
|
||||
params[:nickname]
|
||||
end
|
||||
|
||||
def description
|
||||
params[:description]
|
||||
end
|
||||
@@ -45,7 +49,7 @@ class Organizations::Teams::CreateService < ApplicationService
|
||||
end
|
||||
|
||||
def create_team
|
||||
@team = Team.build(org.id, name, description, authorize,
|
||||
@team = Team.build(org.id, name, nickname, description, authorize,
|
||||
includes_all_project, can_create_org_project)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user