genlong 6 months ago
parent
commit
dac9973753
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/ppt/ppt_group.go

+ 1 - 1
services/ppt/ppt_group.go

@@ -447,7 +447,7 @@ func RenameGroupName(groupId int64, groupName string, adminId int) (err error) {
 		err = errors.New("目录查询出错:" + err.Error())
 		return
 	}
-	if item != nil {
+	if item != nil && item.GroupId <= 0 && item.GroupId != groupId {
 		err = errors.New("目录名称已存在,不可重复添加")
 		return
 	}