ソースを参照

Fixed bug where team with admin privelege type doesn't get any unit attached to the team (#4719)

tags/v1.6.0-dev
Lanre Adelowo 5年前
コミット
6ca8fbd2f9
1個のファイルの変更3行の追加2行の削除
  1. 3
    2
      routers/org/teams.go

+ 3
- 2
routers/org/teams.go ファイルの表示

@@ -186,7 +186,8 @@ func NewTeamPost(ctx *context.Context, form auth.CreateTeamForm) {
Description: form.Description,
Authorize: models.ParseAccessMode(form.Permission),
}
if t.Authorize < models.AccessModeAdmin {

if t.Authorize < models.AccessModeOwner {
var units = make([]*models.TeamUnit, 0, len(form.Units))
for _, tp := range form.Units {
units = append(units, &models.TeamUnit{
@@ -275,7 +276,7 @@ func EditTeamPost(ctx *context.Context, form auth.CreateTeamForm) {
}
}
t.Description = form.Description
if t.Authorize < models.AccessModeAdmin {
if t.Authorize < models.AccessModeOwner {
var units = make([]models.TeamUnit, 0, len(form.Units))
for _, tp := range form.Units {
units = append(units, models.TeamUnit{

読み込み中…
キャンセル
保存