|
|
@ -161,6 +161,9 @@ func (s *groupServer) CreateGroup(ctx context.Context, req *pbGroup.CreateGroupR
|
|
|
|
if req.OwnerUserID == "" {
|
|
|
|
if req.OwnerUserID == "" {
|
|
|
|
return nil, errs.ErrArgs.Wrap("no group owner")
|
|
|
|
return nil, errs.ErrArgs.Wrap("no group owner")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if req.GroupInfo.GroupType != constant.WorkingGroup {
|
|
|
|
|
|
|
|
return nil, errs.ErrArgs.Wrap(fmt.Sprintf("group type %d not support", req.GroupInfo.GroupType))
|
|
|
|
|
|
|
|
}
|
|
|
|
if err := authverify.CheckAccessV3(ctx, req.OwnerUserID); err != nil {
|
|
|
|
if err := authverify.CheckAccessV3(ctx, req.OwnerUserID); err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|