mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
update vendor
This commit is contained in:
@@ -63,7 +63,7 @@ type SProjectAddUserGroupInput struct {
|
||||
}
|
||||
|
||||
func (input SProjectAddUserGroupInput) Validate() error {
|
||||
if len(input.Users) == 0 || len(input.Groups) == 0 {
|
||||
if len(input.Users) == 0 && len(input.Groups) == 0 {
|
||||
return errors.Error("empty user and group")
|
||||
}
|
||||
if len(input.Roles) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user