fix 控制不可按role分配权限

This commit is contained in:
2024-06-14 12:17:21 +08:00
parent 0452fca141
commit a545f46d27

View File

@@ -46,5 +46,9 @@ public class DevicePermissionSaveRequest : IValidatableObject
yield return new ValidationResult("请明确具体的厂区", new[] { nameof(TenantId) });
}
}
else if (AssignType == AssignTypeEnumType.Role)
{
yield return new ValidationResult("暂不支持角色分配", new[] { nameof(AssignType) });
}
}
}
}